File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ type Author {
3
3
"The internal identifier of the author."
4
4
id : ID ! # the ! means that every author object _must_ have an id
5
5
"The first name of the author. It might not be the legal name. It's just a name mate...."
6
- firstName : String
6
+ firstName : String @deprecated ( reason : " this is bad " )
7
7
"The last name of the author. It might be everything as we do not run Know Your Author."
8
8
lastName : String
9
9
"""
@@ -13,7 +13,7 @@ type Author {
13
13
}
14
14
15
15
"A blog post or something else like carbonara recipe."
16
- type Post {
16
+ type Post implements Stuff {
17
17
"The internal identifier we love to leak outside."
18
18
id : ID !
19
19
"The title of the post. There's no limit to the title, so possible the whole post content can be in the title."
@@ -29,6 +29,8 @@ type Post {
29
29
type Query {
30
30
"Fetch all posts without any arguments. Default order is funky."
31
31
posts : [Post ]
32
+ "Search everything"
33
+ search : [Result ]
32
34
}
33
35
34
36
# this schema allows the following mutation:
@@ -44,3 +46,12 @@ schema {
44
46
query : Query
45
47
mutation : Mutation
46
48
}
49
+
50
+ "A result"
51
+ union Result = Author | Post
52
+
53
+ "A superset of everything"
54
+ interface Stuff {
55
+ "The identifier of anything"
56
+ id : ID !
57
+ }
You can’t perform that action at this time.
0 commit comments