Skip to content

Commit 48b2c39

Browse files
authored
Better fish documentation and fishing level
1 parent 12b6469 commit 48b2c39

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

schema.graphqls

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@ scalar DateTime
1212
type Fish {
1313
"The name of the fish."
1414
name: String!
15+
@spectaql(options: [{ key: "example", value: "Midnight Tang" }])
1516

1617
"The climate this fish can be found in."
1718
climate: String!
19+
@spectaql(options: [{ key: "example", value: "Temperate" }])
1820

1921
"The collection this fish can be found in."
2022
collection: String!
23+
@spectaql(options: [{ key: "example", value: "Dark Grove" }])
2124

2225
"The time this fish can be caught."
2326
catchTime: FishCatchTime!
@@ -141,19 +144,44 @@ type TrophyData {
141144
bonus: Int!
142145
}
143146

147+
"Data relating to a level."
148+
type LevelData {
149+
"The overall level."
150+
level: Int!
151+
152+
"The zero-indexed evolution of the level."
153+
evolution: Int!
154+
155+
"The next level that will have an evolution, if any."
156+
nextEvolutionLevel: Int
157+
158+
"The progress the player is making towards their next level, if any."
159+
nextLevelProgress: ProgressionData
160+
}
161+
144162
"A Crown Level and associated trophy data."
145163
type CrownLevel {
146164
"The overall Crown Level."
147165
level: Int!
166+
@deprecated(reason: "Use levelData instead.")
148167

149168
"The zero-indexed evolution of the crown."
150169
evolution: Int!
170+
@deprecated(reason: "Use levelData instead.")
151171

152172
"The next level that the crown will evolve, if any."
153173
nextEvolutionLevel: Int
174+
@deprecated(reason: "Use levelData instead.")
154175

155176
"The progress the player is making towards their next level, if any."
156177
nextLevelProgress: ProgressionData
178+
@deprecated(reason: "Use levelData instead.")
179+
180+
"The overall level data."
181+
levelData: LevelData
182+
183+
"The fishing level data."
184+
fishingLevelData: LevelData
157185

158186
"The amount of trophies the player has."
159187
trophies(
@@ -247,6 +275,7 @@ type Collections {
247275
"Returns the record data for all fish, optionally in a specific collection."
248276
fish(
249277
collection: String = null
278+
@spectaql(options: [{ key: "example", value: "Dark Grove" }])
250279
): [FishRecord!]!
251280
}
252281

0 commit comments

Comments
 (0)