github.com/niko0xdev/gqlgen@v0.17.55-0.20240120102243-2ecff98c3e37/graphql/introspection/query.go (about)

     1  package introspection
     2  
     3  // Query is the query generated by graphiql to determine type information
     4  const Query = `
     5  query IntrospectionQuery {
     6    __schema {
     7      description
     8      queryType {
     9        name
    10      }
    11      mutationType {
    12        name
    13      }
    14      subscriptionType {
    15        name
    16      }
    17      types {
    18        ...FullType
    19      }
    20      directives {
    21        name
    22        description
    23        locations
    24        args {
    25          ...InputValue
    26        }
    27      }
    28    }
    29  }
    30  
    31  fragment FullType on __Type {
    32    kind
    33    name
    34    description
    35    specifiedByURL
    36    fields(includeDeprecated: true) {
    37      name
    38      description
    39      args {
    40        ...InputValue
    41      }
    42      type {
    43        ...TypeRef
    44      }
    45      isDeprecated
    46      deprecationReason
    47    }
    48    inputFields {
    49      ...InputValue
    50    }
    51    interfaces {
    52      ...TypeRef
    53    }
    54    enumValues(includeDeprecated: true) {
    55      name
    56      description
    57      isDeprecated
    58      deprecationReason
    59    }
    60    possibleTypes {
    61      ...TypeRef
    62    }
    63  }
    64  
    65  fragment InputValue on __InputValue {
    66    name
    67    description
    68    type {
    69      ...TypeRef
    70    }
    71    defaultValue
    72  }
    73  
    74  fragment TypeRef on __Type {
    75    kind
    76    name
    77    ofType {
    78      kind
    79      name
    80      ofType {
    81        kind
    82        name
    83        ofType {
    84          kind
    85          name
    86          ofType {
    87            kind
    88            name
    89            ofType {
    90              kind
    91              name
    92              ofType {
    93                kind
    94                name
    95                ofType {
    96                  kind
    97                  name
    98                }
    99              }
   100            }
   101          }
   102        }
   103      }
   104    }
   105  }
   106  `