prelude.graphql

  1# This file defines all the implicitly declared types that are required by the graphql spec. It is implicitly included by calls to LoadSchema
  2
  3# The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
  4scalar Int
  5
  6# The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point).
  7scalar Float
  8
  9# The `String`scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
 10scalar String
 11
 12# The `Boolean` scalar type represents ` + "`" + `true` + "`" + ` or ` + "`" + `false` + "`" + `.
 13scalar Boolean
 14
 15# The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.
 16scalar ID
 17
 18# The @include directive may be provided for fields, fragment spreads, and inline fragments, and allows for conditional inclusion during execution as described by the if argument.
 19directive @include(if: Boolean!) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
 20
 21# The @skip directive may be provided for fields, fragment spreads, and inline fragments, and allows for conditional exclusion during execution as described by the if argument.
 22directive @skip(if: Boolean!) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
 23
 24# The @deprecated directive is used within the type system definition language to indicate deprecated portions of a GraphQL service’s schema, such as deprecated fields on a type or deprecated enum values.
 25directive @deprecated(reason: String = "No longer supported") on FIELD_DEFINITION | ENUM_VALUE
 26
 27type __Schema {
 28    types: [__Type!]!
 29    queryType: __Type!
 30    mutationType: __Type
 31    subscriptionType: __Type
 32    directives: [__Directive!]!
 33}
 34
 35type __Type {
 36    kind: __TypeKind!
 37    name: String
 38    description: String
 39
 40    # OBJECT and INTERFACE only
 41    fields(includeDeprecated: Boolean = false): [__Field!]
 42
 43    # OBJECT only
 44    interfaces: [__Type!]
 45
 46    # INTERFACE and UNION only
 47    possibleTypes: [__Type!]
 48
 49    # ENUM only
 50    enumValues(includeDeprecated: Boolean = false): [__EnumValue!]
 51
 52    # INPUT_OBJECT only
 53    inputFields: [__InputValue!]
 54
 55    # NON_NULL and LIST only
 56    ofType: __Type
 57}
 58
 59type __Field {
 60    name: String!
 61    description: String
 62    args: [__InputValue!]!
 63    type: __Type!
 64    isDeprecated: Boolean!
 65    deprecationReason: String
 66}
 67
 68type __InputValue {
 69    name: String!
 70    description: String
 71    type: __Type!
 72    defaultValue: String
 73}
 74
 75type __EnumValue {
 76    name: String!
 77    description: String
 78    isDeprecated: Boolean!
 79    deprecationReason: String
 80}
 81
 82enum __TypeKind {
 83    SCALAR
 84    OBJECT
 85    INTERFACE
 86    UNION
 87    ENUM
 88    INPUT_OBJECT
 89    LIST
 90    NON_NULL
 91}
 92
 93type __Directive {
 94    name: String!
 95    description: String
 96    locations: [__DirectiveLocation!]!
 97    args: [__InputValue!]!
 98}
 99
100enum __DirectiveLocation {
101    QUERY
102    MUTATION
103    SUBSCRIPTION
104    FIELD
105    FRAGMENT_DEFINITION
106    FRAGMENT_SPREAD
107    INLINE_FRAGMENT
108    SCHEMA
109    SCALAR
110    OBJECT
111    FIELD_DEFINITION
112    ARGUMENT_DEFINITION
113    INTERFACE
114    UNION
115    ENUM
116    ENUM_VALUE
117    INPUT_OBJECT
118    INPUT_FIELD_DEFINITION
119}