-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gatsby custom schema API fails with Contentful multi reference #12787
Comments
Thanks @stefanprobst, whats the best way for me to test? can i install this specific PR? |
it's available in the latest gatsby version (2.2.10) :) |
@stefanprobst @wardpeet i have discovered the same problem seems to be affecting unions, when a field is referencing an array of multiple types and one of the types is missing i'm always getting Could this be linked to PR #12816 |
@sami616 The PR you linked to is not merged yet, so the issue must lie somewhere else. Would you be able to open a new bug report (and if possible adjust the reproduction repo)? That would be very helpful thanks! |
no prob @stefanprobst #12832 same repo, hopefully that makes sense - shout if not! |
Description
The new Gatsby customize schema API returns null on multi reference fields when used with
gatsby-source-contentful
even when the field is populatedIn this case specifically the
sections
field:Steps to reproduce
Expected result
A list of data should render under the page title
Actual result
Nothing renders because the field sections is
null
despite data being available in Contentful.Environment
System:
OS: macOS 10.14
CPU: x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.10.0 - ~/.nvm/versions/node/v10.10.0/bin/node
Yarn: 1.10.1 - ~/.nvm/versions/node/v10.10.0/bin/yarn
npm: 6.4.1 - ~/.nvm/versions/node/v10.10.0/bin/npm
Browsers:
Chrome: 73.0.3683.86
Firefox: 62.0.3
Safari: 12.0
npmPackages:
gatsby: ^2.2.8 => 2.2.8
gatsby-plugin-react-helmet: ^3.0.0 => 3.0.0
gatsby-source-contentful: ^2.0.42 => 2.0.42
gatsby-transformer-remark: ^2.1.7 => 2.1.7
npmGlobalPackages:
gatsby-cli: 2.4.3
The text was updated successfully, but these errors were encountered: