@aws-amplify/graphql-docs-generator

amplify graphql docs generator plugin

Usage no npm install needed!

<script type="module">
  import awsAmplifyGraphqlDocsGenerator from 'https://cdn.skypack.dev/@aws-amplify/graphql-docs-generator';
</script>

README

GraphQL Docs generator

GraphQL document generator takes a schema and generates all possible statements(queries, mutations and subscription) on that schema. This can act as a starting point for the users who are new to GraphQL

Installation and execution

$ npm install -g @aws-amplify/graphql-docs-generator
$ graphql-docs-generator --schema test-data/schema.json --output all-operations.graphql --language graphql

Todo:

  • Add support for subscriptions
  • Add type information
  • Add unit tests
  • Support generating operation by downloading schema from a GraphQL server
  • Support generation of separate files (queries.graphql, mutations.graphql and subscriptions.graphql)
  • Support de-duping of fragments (non inline fragments)