GraphQL Mesh as a Gateway

2 Aug 2021

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"
  }
}