Skip to content

Instantly share code, notes, and snippets.

@TimonVS
Created February 24, 2021 14:21
Show Gist options
  • Save TimonVS/026909919e7134e61abd270ae976d7fa to your computer and use it in GitHub Desktop.
Save TimonVS/026909919e7134e61abd270ae976d7fa to your computer and use it in GitHub Desktop.
schema:
- ${CONTENTFUL_BASE_URL}${CONTENTFUL_SPACE_ID}:
headers:
Authorization: Bearer ${CONTENTFUL_DELIVERY_ACCESS_TOKEN}
- schema.graphql # <--
documents: "./src/**/*.graphql"
generates:
./src/generated/graphql.ts:
plugins:
- typescript
- typescript-operations
# Override fields to be required
# This will be merged with the `Asset` type from the remote schema
type Asset {
url: String!
width: Int!
height: Int!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment