craftcms / gatsby-source-craft

Gatsby source plugin for Craft CMS.
MIT License
54 stars 13 forks source link

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

Open metheeruetaichetcharoen-toast opened 2 years ago

metheeruetaichetcharoen-toast commented 2 years ago

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