Skip to content

Instantly share code, notes, and snippets.

@Burnsy
Last active Apr 6, 2021
Embed
What would you like to do?
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