Get GraphQL whole schema query

后端 未结 10 1238
花落未央
花落未央 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:24

    You can download a remote GraphQL server's schema with the following command. When the command succeeds, you should see a new file named schema.json in the current working directory.

    ~$ npx apollo-cli download-schema $GRAPHQL_URL --output schema.json

提交回复
热议问题