Module: Graphqlmd

Included in:
Graphqlmd
Defined in:
lib/graphqlmd/consts.rb,
lib/graphqlmd/version.rb

Defined Under Namespace

Classes: Graphqlmd

Constant Summary collapse

SCHEMA_QUERY =
<<~QUERY
  fragment FullType on __Type {
    kind
    name
    description
    fields(includeDeprecated: true) {
      name
      description
      args {
        ...InputValue
      }
      type {
        ...TypeRef
      }
      isDeprecated
      deprecationReason
    }
    inputFields {
      ...InputValue
      description
      defaultValue
    }
    interfaces {
      ...TypeRef
    }
    enumValues(includeDeprecated: true) {
      name
      description
      isDeprecated
      deprecationReason
    }
    possibleTypes {
      ...TypeRef
    }
  }
  fragment InputValue on __InputValue {
    name
    type {
      ...TypeRef
    }
    description
    defaultValue
  }
  fragment TypeRef on __Type {
    kind
    name
    description
    ofType {
      kind
      name
      description
      ofType {
        kind
        name
        description
        ofType {
          kind
          name
          description
          ofType {
            kind
            name
            description
            ofType {
              kind
              name
              description
              ofType {
                kind
                name
                description
                ofType {
                  kind
                  name
                  description
                }
              }
            }
          }
        }
      }
    }
  }

  {
    schema:__schema {
      queries:queryType {
        ...FullType
      }
      mutations:mutationType {
        ...FullType
      }
      types {
        ...FullType
      }
    }
  }
QUERY
LIST =
'LIST'
SCALAR =
'SCALAR'
NON_NULL =
'NON_NULL'
CLIENT_MUTATION_ID =
'clientMutationId'
IGNORED_OBJECT_NAMES =
%w[
  Query
  Mutation
  SCALAR
  __DirectiveLocation
  __TypeKind
  __InputValue
  __EnumValue
  __Directive
  __Field
  __Type
  __Schema
]
VERSION =
'1.0.4'