Get GraphQL whole schema query

后端 未结 10 1246
花落未央
花落未央 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条回答
  •  旧时难觅i
    2020-12-23 00:19

    If you want to do it by your self, read these code:

    There is a modular state-of-art tool 「graphql-cli」, consider looking at it. It uses package 「graphql」's buildClientSchema to build IDL .graphql file from introspection data.

    • graphql-cli get-schema :integrated into graphql-cli part 1
    • graphql-config EndpointsExtension :integrated into graphql-cli part 2

提交回复
热议问题