Skip to content

Commit b598c93

Browse files
committed
Add test
1 parent 2727502 commit b598c93

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
type Query {
2+
allThings(includingArchived: Boolean, first: Int!): ThingConnection
3+
@semanticNonNull
4+
}
5+
6+
type ThingConnection {
7+
pageInfo: PageInfo!
8+
nodes: [Thing] @semanticNonNull(levels: [0, 1])
9+
}
10+
11+
type PageInfo {
12+
startCursor: String @semanticNonNull(levels: [0])
13+
endCursor: String @semanticNonNull
14+
hasNextPage: Boolean @semanticNonNull
15+
hasPreviousPage: Boolean @semanticNonNull
16+
}
17+
18+
interface Thing {
19+
id: ID!
20+
name: String @semanticNonNull
21+
description: String
22+
}
23+
24+
type Book implements Thing {
25+
id: ID!
26+
# Test that this semantic-non-null doesn't cause issues
27+
name: String* @semanticNonNull
28+
description: String
29+
# Test that this non-null gets stripped
30+
pages: Int! @semanticNonNull
31+
}
32+
33+
type Car implements Thing {
34+
id: ID!
35+
name: String @semanticNonNull
36+
description: String
37+
mileage: Float @semanticNonNull
38+
}
39+
File renamed without changes.

0 commit comments

Comments
 (0)