GraphQL Tree organisation showing one record

Hi there,

For my main navigation with dropdown feature I’m using a model with a tree structure. This works in Dato, but when I test in the CDA Playground, I only get one record returned.

The records contain a label and a link field. The label field is required. Because some records are titles for the dropdown.

Also I’m using draft/publish.

One last strange thing is that when I run the allModels-query, im my case the allMainNavigations. Dato gives me all the records.

What am I doing wrong?

Hello @awdtv and welcome to the community!

Can you send us the query you are using, the result you where expecting, and the URL of the record you are querying at so we can take a closer look at what could be happening?

Thank you!