DEV Community

Ben Klein
Ben Klein

Posted on

Need your help: Show me your GraphQL Schema

Hello Community!

I need your help. I'm the maintainer of Vuex-ORM-GraphQL. It's a tough job to cover all those different ways to design a GraphQL Schema. You would help me a lot if you could run the introspection query below against your GraphQL API and send me the result.

This way I can analyze what different schema designs are out there and write unit tests to ensure that my plugin can handle them all :)

Disclaimer: Please make sure it's ok to send me the schema! Don't send me any secret or sensible information you may be sentenced for. However I promise to keep the stuff you send me secret and I will delete it right after analyzing it. I will not use them for any other purpose or distribute it.

Here is the introspection schema, you can run it against your API by using GraphiQL for example.

{
  __schema {
    types {
      name
      description

      fields(includeDeprecated: true) {
        name
        description
        args {
          name
          description
          type {
            name
            kind

            ofType {
              kind

              name
              ofType {
                kind
                name

                ofType {
                  kind
                  name
                }
              }
            }
          }
        }

        type {
          name
          kind

          ofType {
            kind

            name
            ofType {
              kind
              name

              ofType {
                kind
                name
              }
            }
          }
        }
      }

      inputFields {
        name
        description

        type {
          name
          kind

          ofType {
            kind

            name
            ofType {
              kind
              name

              ofType {
                kind
                name
              }
            }
          }
        }
      }
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

Send me the result as a private gist to bk@itws.de.

Thank you very much for your help!

Top comments (1)

Collapse
 
jrhusney profile image
Jordan Husney

Sent!