Write GraphQL schema file to filesystem
P
Paul Tiedtke
We are using a monorepo with the strapi server in it. But if you are using a graphql codegen you cannot reference a schema.graphql file, instead you have to reference the strapi graphql endpoint which is not available in the CI.
It would be very helpful if strapi would write the schema to the file system on every change, so that it can life in the repo as well.
Gustav Hansen
Hello Paul Tiedtke. I think this feature is already implemented (but is not documented yet): https://github.com/strapi/strapi/pull/12467
P
Paul Tiedtke
Gustav Hansen: Thank you, this really worked! But yes, the docs are missing. Created a new one: https://feedback.strapi.io/documentation/p/docs-are-missing-for-graphql-schema-file-export
But I'm not sure how to delete this post.