Contentful logo

Contentful Community

Generate schema.graphql

Hi everyone,

I’m currently developing an app with React Native and MobX State Tree ( mobx -state-tree).
I would like to have the same model on Contentful as my local state management.
I fetch the Contentful API with graphQL but I would like to put these data into MobX.
One way to do is to extract the schema.graphql and generate the same structure for MobX.
My question is: do you know how to generate this schema through Contentful?

Thanks :slight_smile:

I use gatsby-plugin-schema-snapshot.