Skip to content

Commit 12b6469

Browse files
authored
feature: Fishing-related data
1 parent e1ac9f1 commit 12b6469

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed

schema.graphqls

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,82 @@ scalar DateTime
88
@spectaql(options: [{ key: "example", value: "1996-12-19T16:39:57-08:00" }])
99
@specifiedBy(url: "https://scalars.graphql.org/andimarek/date-time.html")
1010

11+
"A fish."
12+
type Fish {
13+
"The name of the fish."
14+
name: String!
15+
16+
"The climate this fish can be found in."
17+
climate: String!
18+
19+
"The collection this fish can be found in."
20+
collection: String!
21+
22+
"The time this fish can be caught."
23+
catchTime: FishCatchTime!
24+
25+
"If this fish is elusive."
26+
elusive: Boolean!
27+
28+
"The number of trophies awarded for catching this fish in a given weight."
29+
trophies(weight: FishWeight!): Int
30+
}
31+
32+
"The time a fish can be caught in."
33+
enum FishCatchTime {
34+
"The fish can always be caught."
35+
ALWAYS
36+
37+
"The fish can only be caught during daytime."
38+
DAY
39+
40+
"The fish can only be caught during nighttime."
41+
NIGHT
42+
}
43+
44+
"""
45+
The weight of a fish.
46+
47+
Note that some weights are not used for crabs, or are only used for crabs.
48+
"""
49+
enum FishWeight {
50+
"Average."
51+
AVERAGE
52+
53+
"Large."
54+
LARGE
55+
56+
"""
57+
Massive.
58+
59+
This weight is not used for crabs.
60+
"""
61+
MASSIVE
62+
63+
"""
64+
Gargantuan.
65+
66+
This weight is not used for crabs.
67+
"""
68+
GARGANTUAN
69+
70+
"""
71+
Colossal.
72+
73+
This weight is only used for crabs.
74+
"""
75+
COLOSSAL
76+
}
77+
78+
"A record of the weight of fish that have been caught."
79+
type FishRecord {
80+
"The fish this record is for."
81+
fish: Fish!
82+
83+
"A list of the weight that have been caught."
84+
weights: [FishWeight!]!
85+
}
86+
1187
"A rank."
1288
enum Rank {
1389
"The Champ rank."
@@ -167,6 +243,11 @@ type Collections {
167243
collection: String = null
168244
@spectaql(options: { key: "example", value: "Oceanic" })
169245
): [CosmeticOwnershipState!]!
246+
247+
"Returns the record data for all fish, optionally in a specific collection."
248+
fish(
249+
collection: String = null
250+
): [FishRecord!]!
170251
}
171252

172253
"The ownership state of a cosmetic."

0 commit comments

Comments
 (0)