Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rburgst/gatsby-graphql-toolkit-bug
sample repo showing a bug in gatsby-graphql-source-toolkit
https://github.com/rburgst/gatsby-graphql-toolkit-bug
Last synced: 2 days ago
JSON representation
sample repo showing a bug in gatsby-graphql-source-toolkit
- Host: GitHub
- URL: https://github.com/rburgst/gatsby-graphql-toolkit-bug
- Owner: rburgst
- Created: 2022-04-06T13:31:48.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-04-06T14:18:51.000Z (over 2 years ago)
- Last Synced: 2024-11-08T17:53:07.492Z (about 2 months ago)
- Language: TypeScript
- Size: 495 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Sample repo showing a problem in
Gatsby GraphQL Source Toolkit
To replicate do the following
1. start the dev server
```
cd server
pnpm install
pnpm dev
```
2. In another shell start a gatsby build
```
cd gatsby
yarn install
yarn build
```### Expected
the build runs through
### Actual
The following error is thrown
```
ERROR #85925 GRAPHQL
There was an error in your GraphQL query:
Cannot return null for non-nullable field CMCategory.nameDe.
The field "CMCategory.nameDe." was explicitly defined as non-nullable via the schema customization API (by yourself or a plugin/theme). This means that this field is not optional and you have to define a value. If this is not your
desired behavior and you defined the schema yourself, go to "createTypes" in gatsby-node.js. If you're using a plugin/theme, you can learn more here on how to fix field types:
https://www.gatsbyjs.com/docs/reference/graphql-data-layer/schema-customization#fixing-field-types1 | fragment ConcertCategoryFragment on CMCategory {
2 | remoteId
> 3 | nameDe
| ^
4 | nameEn
5 | isSubcategoryOf {
6 | remoteId
7 | nameDe
8 | nameEn
9 | }
10 | }
11 |
```