Skip to content
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

Using Neo field with more than one level returns null value on Gatsby GraphQL #88

Open
metheeruetaichetcharoen-toast opened this issue Oct 31, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@metheeruetaichetcharoen-toast
Copy link

metheeruetaichetcharoen-toast commented Oct 31, 2022

Description

Trying to query gatsby graphql data on any neo field that has more than one level will return null value.

Steps to reproduce

  1. Create a new Neo field with the following Level 0, Level 1, Level 2, having Level 1 as an allow child block of level 0 and Level 2 as an allow child block of Level 1

Screen Shot 2022-10-31 at 1 35 41 PM

Screen Shot 2022-10-31 at 1 35 52 PM

Screen Shot 2022-10-31 at 1 36 03 PM

  1. Create an entry that utilizing this field.

Screen Shot 2022-10-31 at 1 37 52 PM

  1. Go to Gatsby GraphQL to try to query the level 2's content, they are not available.

Screen Shot 2022-10-31 at 1 40 15 PM

Additional info

  • Craft version: 3.7.57
  • PHP version: 7.4.30
  • Database driver & version: MySQL 8.0.30
  • Plugins & versions: Neo - 2.13.15
@metheeruetaichetcharoen-toast metheeruetaichetcharoen-toast added the bug Something isn't working label Oct 31, 2022
@brianjhanson brianjhanson self-assigned this Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants