@@ -445,8 +445,8 @@ interface Baaz {
445445}
446446
447447type Bar implements Foo, Baaz {
448- int: Int
449448 str: String
449+ int: Int
450450}
451451
452452interface Foo {
@@ -512,8 +512,8 @@ public function testPrintUnions()
512512union MultipleUnion = Foo | Bar
513513
514514type Root {
515- multiple: MultipleUnion
516515 single: SingleUnion
516+ multiple: MultipleUnion
517517}
518518
519519union SingleUnion = Foo
@@ -677,13 +677,13 @@ public function testPrintIntrospectionSchema()
677677# skipping a field. Directives provide this by describing additional information
678678# to the executor.
679679type __Directive {
680- args: [__InputValue!] !
680+ name: String !
681681 description: String
682682 locations: [__DirectiveLocation!]!
683- name: String!
684- onField: Boolean! @deprecated(reason: "Use `locations`.")
685- onFragment: Boolean! @deprecated(reason: "Use `locations`.")
683+ args: [__InputValue!]!
686684 onOperation: Boolean! @deprecated(reason: "Use `locations`.")
685+ onFragment: Boolean! @deprecated(reason: "Use `locations`.")
686+ onField: Boolean! @deprecated(reason: "Use `locations`.")
687687}
688688
689689# A Directive can be adjacent to many parts of the GraphQL language, a
@@ -748,52 +748,53 @@ enum __DirectiveLocation {
748748# placeholder for a string or numeric value. However an Enum value is returned in
749749# a JSON response as a string.
750750type __EnumValue {
751- deprecationReason : String
751+ name : String!
752752 description: String
753753 isDeprecated: Boolean!
754- name : String!
754+ deprecationReason : String
755755}
756756
757757# Object and Interface types are described by a list of Fields, each of which has
758758# a name, potentially a list of arguments, and a return type.
759759type __Field {
760- args: [__InputValue!]!
761- deprecationReason: String
762- description: String
763- isDeprecated: Boolean!
764760 name: String!
761+ description: String
762+ args: [__InputValue!]!
765763 type: __Type!
764+ isDeprecated: Boolean!
765+ deprecationReason: String
766766}
767767
768768# Arguments provided to Fields or Directives and the input fields of an
769769# InputObject are represented as Input Values which describe their type and
770770# optionally a default value.
771771type __InputValue {
772- # A GraphQL-formatted string representing the default value for this input value.
773- defaultValue: String
774- description: String
775772 name: String!
773+ description: String
776774 type: __Type!
775+
776+ # A GraphQL-formatted string representing the default value for this input value.
777+ defaultValue: String
777778}
778779
779780# A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all
780781# available types and directives on the server, as well as the entry points for
781782# query, mutation, and subscription operations.
782783type __Schema {
783- # A list of all directives supported by this server.
784- directives: [__Directive!]!
785-
786- # If this server supports mutation, the type that mutation operations will be rooted at.
787- mutationType: __Type
784+ # A list of all types supported by this server.
785+ types: [__Type!]!
788786
789787 # The type that query operations will be rooted at.
790788 queryType: __Type!
791789
790+ # If this server supports mutation, the type that mutation operations will be rooted at.
791+ mutationType: __Type
792+
792793 # If this server support subscription, the type that subscription operations will be rooted at.
793794 subscriptionType: __Type
794795
795- # A list of all types supported by this server.
796- types : [__Type !]!
796+ # A list of all directives supported by this server.
797+ directives : [__Directive !]!
797798}
798799
799800# The fundamental unit of any GraphQL Schema is the type. There are many kinds of
@@ -805,15 +806,15 @@ enum __DirectiveLocation {
805806# they describe. Abstract types, Union and Interface, provide the Object types
806807# possible at runtime. List and NonNull types compose other types.
807808type __Type {
809+ kind: __TypeKind!
810+ name: String
808811 description: String
809- enumValues(includeDeprecated: Boolean = false): [__EnumValue!]
810812 fields(includeDeprecated: Boolean = false): [__Field!]
811- inputFields: [__InputValue!]
812813 interfaces: [__Type!]
813- kind: __TypeKind!
814- name: String
815- ofType: __Type
816814 possibleTypes: [__Type!]
815+ enumValues(includeDeprecated: Boolean = false): [__EnumValue!]
816+ inputFields: [__InputValue!]
817+ ofType: __Type
817818}
818819
819820# An enum describing what kind of type a given `__Type` is.
0 commit comments