-
-
Notifications
You must be signed in to change notification settings - Fork 723
/
HttpGetSchemaMiddlewareTests.Download_GraphQL_SDL_Explicit_Route.snap
124 lines (105 loc) · 4.66 KB
/
HttpGetSchemaMiddlewareTests.Download_GraphQL_SDL_Explicit_Route.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
schema {
query: Query
mutation: Mutation
subscription: Subscription
}
interface Character {
id: ID!
name: String!
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
appearsIn: [Episode]
height(unit: Unit): Float
}
type Droid implements Character {
id: ID!
name: String!
appearsIn: [Episode]
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
height(unit: Unit): Float
primaryFunction: String
}
"A connection to a list of items."
type FriendsConnection {
"Information to aid in pagination."
pageInfo: PageInfo!
"A list of edges."
edges: [FriendsEdge!]
"A flattened list of the nodes."
nodes: [Character]
}
"An edge in a connection."
type FriendsEdge {
"A cursor for use in pagination."
cursor: String!
"The item at the end of the edge."
node: Character
}
type Human implements Character {
id: ID!
name: String!
appearsIn: [Episode]
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
otherHuman: Human
height(unit: Unit): Float
homePlanet: String
}
type Mutation {
createReview(episode: Episode! review: ReviewInput!): Review!
}
"Information about pagination in a connection."
type PageInfo {
"Indicates whether more edges exist following the set defined by the clients arguments."
hasNextPage: Boolean!
"Indicates whether more edges exist prior the set defined by the clients arguments."
hasPreviousPage: Boolean!
"When paginating backwards, the cursor to continue."
startCursor: String
"When paginating forwards, the cursor to continue."
endCursor: String
}
type Query {
hero(episode: Episode! = NEW_HOPE): Character
heroes(episodes: [Episode!]): [Character!]
character(characterIds: [String]): [Character!]!
search(text: String): [SearchResult]
human(id: String): Human
droid(id: String): Droid
time: Long!
evict: Boolean!
wait(m: Int!): Boolean!
}
type Review {
commentary: String
stars: Int!
}
type Starship {
id: ID!
name: String!
length(unit: Unit): Float!
}
type Subscription {
onReview(episode: Episode!): Review!
onNext: String!
onException: String!
}
union SearchResult = Starship | Human | Droid
input ReviewInput {
stars: Int!
commentary: String
}
enum Episode {
NEW_HOPE
EMPIRE
JEDI
}
enum Unit {
FOOT
METERS
}
"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`."
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
directive @export(as: String) on FIELD
"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`."
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
"The `Long` scalar type represents non-fractional signed whole 64-bit numeric values. Long can represent values between -(2^63) and 2^63 - 1."
scalar Long