-
Notifications
You must be signed in to change notification settings - Fork 641
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
GraphQL draft queries don't return Matrix content #5031
Comments
Having the same issue. |
Same issue here as well. |
Definitely a side-effect of eager loading all the things. |
Just fixed this for the next release. To get the fix early, change your "require": {
"craftcms/cms": "dev-develop#40d20b6d4ccebc87e7a6dd00f7e0215943db7cf7 as 3.3.9",
"...": "..."
} Then run |
I can confirm this fixes the problem. Thrilled to use Live Preview for a Gatsby project! |
Frickyessss!!!! Thanks @brandonkelly |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When using Gatsby as a Live Preview target, Matrix blocks completely disappear. Plain Text fields, however, return draft content as expected. This is only true of draft content, as previewing the current version of an entry works as expected.
I also don't think this has to do with Gatsby, as I can reproduce the behavior querying Craft's GraphQL endpoint directly.
Eager loading behind the scenes, perhaps?
Example
query (fragment makes no difference)
example.dev/api
response:
example.dev/api?token=blahblah
response:
Steps to reproduce
https://foo.dev/api
)https://foo.dev/api?token=••••••
)Observe that the query response contains the updated Plain Text field value, but that the Matrix block array is empty.
Additional info
The text was updated successfully, but these errors were encountered: