Get GraphQL whole schema query

后端 未结 10 1275
花落未央
花落未央 2020-12-22 23:23

I want to get the schema from the server. I can get all entities with the types but I\'m unable to get the properties.

Getting all types:

query {
  _         


        
10条回答
  •  孤城傲影
    2020-12-23 00:21

    You can use the Hasura's graphqurl utility

    npm install -g graphqurl
    
    gq  --introspect > schema.graphql
    
    # or if you want it in json
    gq  --introspect --format json > schema.json
    

    Full documentation: https://github.com/hasura/graphqurl

提交回复
热议问题