module GraphQL::Introspection
def self.query(include_deprecated_args: false)
def self.query(include_deprecated_args: false) # The introspection query to end all introspection queries, copied from # https://github.com/graphql/graphql-js/blob/master/src/utilities/introspectionQuery.js <<-QUERY y IntrospectionQuery { schema { queryType { name } mutationType { name } subscriptionType { name } types { ...FullType } directives { name description locations args#{include_deprecated_args ? '(includeDeprecated: true)' : ''} { ...InputValue } } ment FullType on __Type { nd me scription elds(includeDeprecated: true) { name description args#{include_deprecated_args ? '(includeDeprecated: true)' : ''} { ...InputValue } type { ...TypeRef } isDeprecated deprecationReason putFields#{include_deprecated_args ? '(includeDeprecated: true)' : ''} { ...InputValue terfaces { ...TypeRef umValues(includeDeprecated: true) { name description isDeprecated deprecationReason ssibleTypes { ...TypeRef ment InputValue on __InputValue { me scription pe { ...TypeRef } faultValue include_deprecated_args ? 'isDeprecated' : ''} include_deprecated_args ? 'deprecationReason' : ''} ment TypeRef on __Type { nd me Type { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name } } } } } } QUERY end