This Repository demonstrates how to combine 7 APIs (4 Apollo Federation SubGraphs, 1 REST, 1 standalone GraphQL, 1 Mock) into one unified GraphQL API which is then securely exposed as a JSON API to a NextJS Frontend.
I've been working on this problem for a few years actually. What I came to realize is that 99% of all (GraphQL) APIs are private, meaning that we don't expose them to a 3rd party. One aspect of private GraphQL APIs that is almost always true is that the access patterns don't change at runtime, meaning that when deployed to production, the Operations don't change any more. What this means is that in production, we don't really need GraphQL. We don't benefit from GraphQL in production anymore, as we're not writing dynamic Operations. Instead, we could compile the GraphQL Operations that we need into a REST API. This step adds extra complexity, but reduced the attack surface and improves performance. To reduce the overhead, I've created a developer tool. WunderGraph! It compiles your GraphQL APIs into REST Endpoints and generates typesafe clients for them. The DX is still the same, you write GraphQL Operations and use a typesafe client. But behind the scenes, it's just REST. We even generate a Postman Collection, so you can easily share the generated API with your team. Here's a demo if you'd like to try it: https://github.com/wundergraph/wundergraph-demo We're open-sourcing the solution very soon! =)
Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!
NextJS / React SSR: 21 Universal Data Fetching Patterns & Best Practices
3 projects | dev.to | 3 May 2022
GraphQL Subscriptions: Why we use SSE/Fetch over Websockets
1 project | dev.to | 27 Apr 2022
Announcing v1.0.0 release of MixerAPI
1 project | reddit.com/r/PHP | 18 Jan 2022
Improving microservice architecture with GraphQL API gateways
4 projects | dev.to | 9 Aug 2021
Run SQL on CSV, Parquet, JSON, Arrow, Unix Pipes and Google Sheet
1 project | reddit.com/r/patient_hackernews | 24 Sep 2022