Content_types schemas folder question

Ok so i was looking into the prismic multi language repo and i can see the content_types folder with the diferent content_types schemas in json format inside, but i dont see a reference to this folder anywhere.

In a previous gatsby project, i would reference the schemas in the gatsby config file, but in next i dont see that anywhere, and when i log the content beeing fetched, i see some of them in array structures, just like in gatsby when i dont set the schema properly.

Can anyone point me where should i make this refference?

Thanks!

Hello Carlos,

Welcome to the Prismic community.

In gatsby, we include custom_type JSON definition and their fields in the gatsby.config.js file to build the correct GraphQL schema to enable you to query data.

In Next.js, you don't need to give Custom Type reference anywhere. Here, data directly being fetched from the API. We give the Custom Type folder here to create the prismic theme command to set up the custom types in your repository.

Let me know if you have any other doubt.

Thanks,

Priyanka

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.