Skip to content

Commit abab757

Browse files
committed
Test schema
1 parent 4a623da commit abab757

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

__tests__/schema.graphql

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
type Query {
2+
allThings(includingArchived: Boolean, first: Int!): ThingConnection*
3+
}
4+
5+
type ThingConnection {
6+
pageInfo: PageInfo!
7+
nodes: [Thing*]*
8+
}
9+
10+
type PageInfo {
11+
startCursor: String*
12+
endCursor: String*
13+
hasNextPage: Boolean*
14+
hasPreviousPage: Boolean*
15+
}
16+
17+
interface Thing {
18+
id: ID!
19+
name: String*
20+
description: String
21+
}
22+
23+
type Book implements Thing {
24+
id: ID!
25+
name: String*
26+
description: String
27+
pages: Int*
28+
}
29+
30+
type Car implements Thing {
31+
id: ID!
32+
name: String*
33+
description: String
34+
mileage: Float*
35+
}

0 commit comments

Comments
 (0)