0no-co / gql.tada

🪄 Magical GraphQL query engine for TypeScript
https://gql-tada.0no.co
MIT License
2.52k stars 41 forks source link

feat(cli): generate persisted operations json files #176

Closed JoviDeCroock closed 4 months ago

JoviDeCroock commented 5 months ago

Summary

This adds a new command called generate-persisted which will go through all the files and generate a JSON file containing all your persisted operations. This can then be used to upload to GraphQL Yoga or some other server to limit the distinct amount of documents that can be sent to the GraphQL server.

Related to https://github.com/0no-co/GraphQLSP/pull/240 Implements part of #76

changeset-bot[bot] commented 5 months ago

🦋 Changeset detected

Latest commit: e00f1b8dae3e3eeb974e1a7b39262f7fe842ed36

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR