gatsby-source-craft icon indicating copy to clipboard operation
gatsby-source-craft copied to clipboard

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

Open metheeruetaichetcharoen-toast opened this issue 2 years ago • 0 comments

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

  2. Create an entry that utilizing this field. Screen Shot 2022-10-31 at 1 37 52 PM

  3. 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