Advertisement
sebbu

graphql introspection

Sep 16th, 2020
1,261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 1.70 KB | None | 0 0
  1.  
  2.     query IntrospectionQuery {
  3.       __schema {
  4.        
  5.         queryType { name }
  6.         mutationType { name }
  7.         subscriptionType { name }
  8.         types {
  9.           ...FullType
  10.         }
  11.         directives {
  12.           name
  13.           description
  14.          
  15.           locations
  16.           args {
  17.             ...InputValue
  18.           }
  19.         }
  20.       }
  21.     }
  22.  
  23.     fragment FullType ON __Type {
  24.       kind
  25.       name
  26.       description
  27.       FIELDS(includeDeprecated: TRUE) {
  28.         name
  29.         description
  30.         args {
  31.           ...InputValue
  32.         }
  33.         TYPE {
  34.           ...TypeRef
  35.         }
  36.         isDeprecated
  37.         deprecationReason
  38.       }
  39.       inputFields {
  40.         ...InputValue
  41.       }
  42.       interfaces {
  43.         ...TypeRef
  44.       }
  45.       enumValues(includeDeprecated: TRUE) {
  46.         name
  47.         description
  48.         isDeprecated
  49.         deprecationReason
  50.       }
  51.       possibleTypes {
  52.         ...TypeRef
  53.       }
  54.     }
  55.  
  56.     fragment InputValue ON __InputValue {
  57.       name
  58.       description
  59.       TYPE { ...TypeRef }
  60.       defaultValue
  61.     }
  62.  
  63.     fragment TypeRef ON __Type {
  64.       kind
  65.       name
  66.       ofType {
  67.         kind
  68.         name
  69.         ofType {
  70.           kind
  71.           name
  72.           ofType {
  73.             kind
  74.             name
  75.             ofType {
  76.               kind
  77.               name
  78.               ofType {
  79.                 kind
  80.                 name
  81.                 ofType {
  82.                   kind
  83.                   name
  84.                   ofType {
  85.                     kind
  86.                     name
  87.                   }
  88.                 }
  89.               }
  90.             }
  91.           }
  92.         }
  93.       }
  94.     }
  95.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement