GraphQL Mesh as a Gateway

GraphQL Mesh acts as a proxy to your existing APIs, and gives you the ultimate developer control over how data is retrieved. It doesn't matter if your API is GraphQL, gRPC, Swagger, Postgres, and non-typed APIs.

Notes

1sources:
2 - name: Countries
3 handler:
4 graphql:
5 endpoint: https://countries.trevorblades.com
6 - name: CartQL
7 handler:
8 graphql:
9 endpoint: https://api.cartql.com
10 - name: Stripe
11 handler:
12 openapi:
13 source: https://raw.githubusercontent.com/stripe/openapi/master/openapi/spec3.json
14 baseUrl: https://api.stripe.com
15 operationHeaders:
16 Authorization: "Bearer {env.STRIPE_SECRET_KEY}"
17
1{
2 "scripts": {
3 "build": "mesh build",
4 "dev": "mesh dev",
5 "start": "mesh start",
6 "validate": "mesh validate"
7 }
8}
9