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.
sources:
- name: Countries
handler:
graphql:
endpoint: https://countries.trevorblades.com
- name: CartQL
handler:
graphql:
endpoint: https://api.cartql.com
- name: Stripe
handler:
openapi:
source: https://raw.githubusercontent.com/stripe/openapi/master/openapi/spec3.json
baseUrl: https://api.stripe.com
operationHeaders:
Authorization: "Bearer {env.STRIPE_SECRET_KEY}"
{
"scripts": {
"build": "mesh build",
"dev": "mesh dev",
"start": "mesh start",
"validate": "mesh validate"
}
}
Published on 2 Aug 2021 by Jamie Barton