gatsby-source-prismic-graphql icon indicating copy to clipboard operation
gatsby-source-prismic-graphql copied to clipboard

Non repeatable Custom Types without slug (uid) can't be queried directly

Open ahmedghazi opened this issue 4 years ago • 0 comments

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

ahmedghazi avatar Mar 24 '20 10:03 ahmedghazi