gatsby-source-prismic-graphql
gatsby-source-prismic-graphql copied to clipboard
Non repeatable Custom Types without slug (uid) can't be queried directly
I'm on gatsby-source-prismic-graphql: ^3.5.0. gatsby: ^2.3.34
I have a Settings custom type. It is single and doesn't really need a slug. I can't query it directly without going through edges array. Same with my Home custom type. Without slug, it appears under prismic > allHomes. As soon as i add a slug it appears then in prismic > home.
Can someone explain me why?
![Capture d’écran 2020-03-24 à 11 20 57](https://user-images.githubusercontent.com/3919985/77414626-a99d5e80-6dc1-11ea-90ea-622f13a78eaa.png)