Skip to content

Commit

Permalink
Add caught time and rarity
Browse files Browse the repository at this point in the history
  • Loading branch information
kezz authored Dec 17, 2024
1 parent 7f8994b commit 3a8abb8
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ scalar DateTime
@spectaql(options: [{ key: "example", value: "1996-12-19T16:39:57-08:00" }])
@specifiedBy(url: "https://scalars.graphql.org/andimarek/date-time.html")

"An RFC-3339 compliant date."
scalar Date

Check notice on line 12 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Type 'Date' was added

Type 'Date' was added
@spectaql(options: [{ key: "example", value: "1996-12-19", }])
@specifiedBy(url: "https://tools.ietf.org/html/rfc3339")

"A fish."
type Fish {

Check notice on line 17 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Type 'Fish' was added

Type 'Fish' was added
"The name of the fish."
Expand All @@ -22,6 +27,9 @@ type Fish {
collection: String!
@spectaql(options: [{ key: "example", value: "Dark Grove" }])

"The rarity of the fish."
rarity: Rarity!

"The time this fish can be caught."
catchTime: FishCatchTime!

Expand Down Expand Up @@ -83,8 +91,17 @@ type FishRecord {
"The fish this record is for."
fish: Fish!

"A list of the weight that have been caught."
weights: [FishWeight!]!
"A list of data about the weights that have been caught."
weights: [FishCaughtWeight!]!
}

"Data about a caught fish weight."
type FishCaughtWeight {

Check notice on line 99 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Type 'FishCaughtWeight' was added

Type 'FishCaughtWeight' was added
"The weight that was caught."
weight: FishWeight!

"When the player first caught this weight."
firstCaught: Date!
}

"A rank."
Expand Down

0 comments on commit 3a8abb8

Please sign in to comment.