Skip to content

Generate basic graphql queries for all object types defined in a schema.

License

Notifications You must be signed in to change notification settings

constata-eu/graphql_queries_from_schema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generates queries for all object types defined in a GraphQL Schema.

This is useful as as starting point when building a catch-all compile time checked client, and you want to support every object with a query from the start, or for exhaustive testing purposes.

We used it at Constata to feed queries to our client built with https://github.com/graphql-rust/graphql-client

If you're looking for something similar to generate testing data in rust have a look at "apollo-smith" in https://github.com/apollographql/apollo-rs

A similar tool exists for javascript users in https://github.com/timqian/gql-generator

In true spirit of graphql, you shouldn't feed queries to your users. Always have a graphql explorer available for them to craft their own.

Usage

Just check out the repo and cargo run -- -i existing_schema.graphql -o your_queries.graphql

About

Generate basic graphql queries for all object types defined in a schema.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages