@@ -445,8 +445,8 @@ interface Baaz {
445445}
446446
447447type Bar implements Foo, Baaz {
448- str: String
449448 int: Int
449+ str: String
450450}
451451
452452interface Foo {
@@ -512,8 +512,8 @@ public function testPrintUnions()
512512union MultipleUnion = Foo | Bar
513513
514514type Root {
515- single: SingleUnion
516515 multiple: MultipleUnion
516+ single: SingleUnion
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- name: String !
680+ args: [__InputValue!] !
681681 description: String
682682 locations: [__DirectiveLocation!]!
683- args: [__InputValue!]!
684- onOperation: Boolean! @deprecated(reason: "Use `locations`.")
685- onFragment: Boolean! @deprecated(reason: "Use `locations`.")
683+ name: String!
686684 onField: Boolean! @deprecated(reason: "Use `locations`.")
685+ onFragment: Boolean! @deprecated(reason: "Use `locations`.")
686+ onOperation: Boolean! @deprecated(reason: "Use `locations`.")
687687}
688688
689689# A Directive can be adjacent to many parts of the GraphQL language, a
@@ -748,53 +748,52 @@ 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- name : String!
751+ deprecationReason : String
752752 description: String
753753 isDeprecated: Boolean!
754- deprecationReason : String
754+ name : 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- name: String!
761- description: String
762760 args: [__InputValue!]!
763- type: __Type!
764- isDeprecated: Boolean!
765761 deprecationReason: String
762+ description: String
763+ isDeprecated: Boolean!
764+ name: String!
765+ type: __Type!
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- name: String!
773- description: String
774- type: __Type!
775-
776772 # A GraphQL-formatted string representing the default value for this input value.
777773 defaultValue: String
774+ description: String
775+ name: String!
776+ type: __Type!
778777}
779778
780779# A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all
781780# available types and directives on the server, as well as the entry points for
782781# query, mutation, and subscription operations.
783782type __Schema {
784- # A list of all types supported by this server.
785- types: [__Type!]!
786-
787- # The type that query operations will be rooted at.
788- queryType: __Type!
783+ # A list of all directives supported by this server.
784+ directives: [__Directive!]!
789785
790786 # If this server supports mutation, the type that mutation operations will be rooted at.
791787 mutationType: __Type
792788
789+ # The type that query operations will be rooted at.
790+ queryType: __Type!
791+
793792 # If this server support subscription, the type that subscription operations will be rooted at.
794793 subscriptionType: __Type
795794
796- # A list of all directives supported by this server.
797- directives : [__Directive !]!
795+ # A list of all types supported by this server.
796+ types : [__Type !]!
798797}
799798
800799# The fundamental unit of any GraphQL Schema is the type. There are many kinds of
@@ -806,15 +805,15 @@ enum __DirectiveLocation {
806805# they describe. Abstract types, Union and Interface, provide the Object types
807806# possible at runtime. List and NonNull types compose other types.
808807type __Type {
809- kind: __TypeKind!
810- name: String
811808 description: String
812- fields(includeDeprecated: Boolean = false): [__Field!]
813- interfaces: [__Type!]
814- possibleTypes: [__Type!]
815809 enumValues(includeDeprecated: Boolean = false): [__EnumValue!]
810+ fields(includeDeprecated: Boolean = false): [__Field!]
816811 inputFields: [__InputValue!]
812+ interfaces: [__Type!]
813+ kind: __TypeKind!
814+ name: String
817815 ofType: __Type
816+ possibleTypes: [__Type!]
818817}
819818
820819# An enum describing what kind of type a given `__Type` is.
0 commit comments