Generating GraphQL json document from Flask graphene

484 Views Asked by At

I want to generate a GraphQL .json document that has graphene schema from Flask. Django has something like manage.py that does this (https://github.com/graphql-python/graphene-django/blob/master/docs/introspection.rst). Anyone know how to generate a GraphQL .json doc from graphene schema?

1

There are 1 best solutions below

0
On BEST ANSWER

OK, seems like this is what I was looking for https://graphql.org/learn/introspection/.

I can use schema endpoint to get the documentation of any graphene server api.