|
| 1 | +# Download_GraphQL_Schema_Slicing_Args_Enabled |
| 2 | + |
| 3 | +```text |
| 4 | +Headers: |
| 5 | +ETag: "1-kBEjhe2t+jfqbeZRxnezu0WDQFYAc0qzjLF1RlHs428=" |
| 6 | +Cache-Control: public, must-revalidate, max-age=3600 |
| 7 | +Content-Type: application/graphql; charset=utf-8 |
| 8 | +Content-Disposition: attachment; filename="schema.graphql" |
| 9 | +Last-Modified: Fri, 01 Jan 2021 00:00:00 GMT |
| 10 | +Content-Length: 5070 |
| 11 | +--------------------------> |
| 12 | +Status Code: OK |
| 13 | +--------------------------> |
| 14 | +schema { |
| 15 | + query: Query |
| 16 | + mutation: Mutation |
| 17 | + subscription: Subscription |
| 18 | +} |
| 19 | +
|
| 20 | +interface Character { |
| 21 | + id: ID! |
| 22 | + name: String! |
| 23 | + friends("Returns the first _n_ elements from the list." first: Int "Returns the elements in the list that come after the specified cursor." after: String "Returns the last _n_ elements from the list." last: Int "Returns the elements in the list that come before the specified cursor." before: String): FriendsConnection |
| 24 | + appearsIn: [Episode] |
| 25 | + traits: JSON |
| 26 | + height(unit: Unit): Float |
| 27 | +} |
| 28 | +
|
| 29 | +type Droid implements Character { |
| 30 | + id: ID! |
| 31 | + name: String! |
| 32 | + appearsIn: [Episode] |
| 33 | + friends("Returns the first _n_ elements from the list." first: Int "Returns the elements in the list that come after the specified cursor." after: String "Returns the last _n_ elements from the list." last: Int "Returns the elements in the list that come before the specified cursor." before: String): FriendsConnection |
| 34 | + height(unit: Unit): Float |
| 35 | + primaryFunction: String |
| 36 | + traits: JSON |
| 37 | +} |
| 38 | +
|
| 39 | +"A connection to a list of items." |
| 40 | +type FriendsConnection { |
| 41 | + "Information to aid in pagination." |
| 42 | + pageInfo: PageInfo! |
| 43 | + "A list of edges." |
| 44 | + edges: [FriendsEdge!] |
| 45 | + "A flattened list of the nodes." |
| 46 | + nodes: [Character] |
| 47 | +} |
| 48 | +
|
| 49 | +"An edge in a connection." |
| 50 | +type FriendsEdge { |
| 51 | + "A cursor for use in pagination." |
| 52 | + cursor: String! |
| 53 | + "The item at the end of the edge." |
| 54 | + node: Character |
| 55 | +} |
| 56 | +
|
| 57 | +type Human implements Character { |
| 58 | + id: ID! |
| 59 | + name: String! |
| 60 | + appearsIn: [Episode] |
| 61 | + friends("Returns the first _n_ elements from the list." first: Int "Returns the elements in the list that come after the specified cursor." after: String "Returns the last _n_ elements from the list." last: Int "Returns the elements in the list that come before the specified cursor." before: String): FriendsConnection |
| 62 | + otherHuman: Human |
| 63 | + height(unit: Unit): Float |
| 64 | + homePlanet: String |
| 65 | + traits: JSON |
| 66 | +} |
| 67 | +
|
| 68 | +type Mutation { |
| 69 | + createReview(episode: Episode! review: ReviewInput!): Review! |
| 70 | + complete(episode: Episode!): Boolean! |
| 71 | +} |
| 72 | +
|
| 73 | +"Information about pagination in a connection." |
| 74 | +type PageInfo { |
| 75 | + "Indicates whether more edges exist following the set defined by the clients arguments." |
| 76 | + hasNextPage: Boolean! |
| 77 | + "Indicates whether more edges exist prior the set defined by the clients arguments." |
| 78 | + hasPreviousPage: Boolean! |
| 79 | + "When paginating backwards, the cursor to continue." |
| 80 | + startCursor: String |
| 81 | + "When paginating forwards, the cursor to continue." |
| 82 | + endCursor: String |
| 83 | +} |
| 84 | +
|
| 85 | +type Query { |
| 86 | + hero(episode: Episode! = NEW_HOPE): Character |
| 87 | + heroByTraits(traits: JSON!): Character |
| 88 | + heroes(episodes: [Episode!]!): [Character!] |
| 89 | + character(characterIds: [String!]!): [Character!]! |
| 90 | + search(text: String!): [SearchResult] |
| 91 | + human(id: String!): Human |
| 92 | + droid(id: String!): Droid |
| 93 | + time: Long! |
| 94 | + evict: Boolean! |
| 95 | + wait(m: Int!): Boolean! |
| 96 | + someDeprecatedField(deprecatedArg: String! = "foo" @deprecated(reason: "use something else")): String! @deprecated(reason: "use something else") |
| 97 | +} |
| 98 | +
|
| 99 | +type Review { |
| 100 | + commentary: String |
| 101 | + stars: Int! |
| 102 | +} |
| 103 | +
|
| 104 | +type Starship { |
| 105 | + id: ID! |
| 106 | + name: String! |
| 107 | + length(unit: Unit): Float! |
| 108 | +} |
| 109 | +
|
| 110 | +type Subscription { |
| 111 | + onReview(episode: Episode!): Review! |
| 112 | + onNext: String! |
| 113 | + onException: String! |
| 114 | + delay(delay: Int! count: Int!): String! |
| 115 | +} |
| 116 | +
|
| 117 | +union SearchResult = Starship | Human | Droid |
| 118 | +
|
| 119 | +input ReviewInput { |
| 120 | + stars: Int! |
| 121 | + commentary: String |
| 122 | +} |
| 123 | +
|
| 124 | +enum Episode { |
| 125 | + NEW_HOPE |
| 126 | + EMPIRE |
| 127 | + JEDI |
| 128 | +} |
| 129 | +
|
| 130 | +enum Unit { |
| 131 | + FOOT |
| 132 | + METERS |
| 133 | +} |
| 134 | +
|
| 135 | +"The `@defer` directive may be provided for fragment spreads and inline fragments to inform the executor to delay the execution of the current fragment to indicate deprioritization of the current fragment. A query with `@defer` directive will cause the request to potentially return multiple responses, where non-deferred data is delivered in the initial response and data deferred is delivered in a subsequent response. `@include` and `@skip` take precedence over `@defer`." |
| 136 | +directive @defer("If this argument label has a value other than null, it will be passed on to the result of this defer directive. This label is intended to give client applications a way to identify to which fragment a deferred result belongs to." label: String "Deferred when true." if: Boolean) on FRAGMENT_SPREAD | INLINE_FRAGMENT |
| 137 | +
|
| 138 | +"The `@stream` directive may be provided for a field of `List` type so that the backend can leverage technology such as asynchronous iterators to provide a partial list in the initial response, and additional list items in subsequent responses. `@include` and `@skip` take precedence over `@stream`." |
| 139 | +directive @stream("If this argument label has a value other than null, it will be passed on to the result of this stream directive. This label is intended to give client applications a way to identify to which fragment a streamed result belongs to." label: String "The initial elements that shall be send down to the consumer." initialCount: Int! = 0 "Streamed when true." if: Boolean) on FIELD |
| 140 | +
|
| 141 | +scalar JSON |
| 142 | +
|
| 143 | +"The `Long` scalar type represents non-fractional signed whole 64-bit numeric values. Long can represent values between -(2^63) and 2^63 - 1." |
| 144 | +scalar Long |
| 145 | +``` |
0 commit comments