Created
February 24, 2021 14:21
-
-
Save TimonVS/026909919e7134e61abd270ae976d7fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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