Skip to content

Instantly share code, notes, and snippets.

@BurnedChris
Last active April 6, 2021 10:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BurnedChris/aa38f0875513dadaf23becd10514a53d to your computer and use it in GitHub Desktop.
Save BurnedChris/aa38f0875513dadaf23becd10514a53d to your computer and use it in GitHub Desktop.
GraphQL Mesh Implementation of ideal-postcodes.co.uk
sources:
- name: idealPostcodes
handler:
openapi:
source: https://openapi.ideal-postcodes.dev/openapi.yaml
baseUrl: https://api.ideal-postcodes.co.uk/v1/
operationHeaders:
Authorization: IDEALPOSTCODES api_key="XXXXXXX"
serve:
port: 8912
playground: true
cors:
origin: '*'
credentials: true
{
"name": "graphql-mesh",
"version": "1.0.0",
"main": "index.js",
"author": "Christopher Burns",
"license": "MIT",
"scripts": {
"start": "mesh serve"
},
"dependencies": {
"@graphql-mesh/cli": "^0.24.1",
"@graphql-mesh/graphql": "^0.13.18",
"@graphql-mesh/openapi": "^0.12.17",
"@graphql-mesh/transform-cache": "^0.8.31",
"@graphql-mesh/transform-filter-schema": "^0.9.1",
"@graphql-mesh/transform-prefix": "^0.6.31",
"graphql": "^15.4.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment