Skip to content

Commit

Permalink
feature: Fishing-related data
Browse files Browse the repository at this point in the history
  • Loading branch information
kezz authored Dec 13, 2024
1 parent e1ac9f1 commit 12b6469
Showing 1 changed file with 81 additions and 0 deletions.
81 changes: 81 additions & 0 deletions schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,82 @@ scalar DateTime
@spectaql(options: [{ key: "example", value: "1996-12-19T16:39:57-08:00" }])
@specifiedBy(url: "https://scalars.graphql.org/andimarek/date-time.html")

"A fish."
type Fish {

Check notice on line 12 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."
name: String!

"The climate this fish can be found in."
climate: String!

"The collection this fish can be found in."
collection: String!

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

"If this fish is elusive."
elusive: Boolean!

"The number of trophies awarded for catching this fish in a given weight."
trophies(weight: FishWeight!): Int
}

"The time a fish can be caught in."
enum FishCatchTime {

Check notice on line 33 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Type 'FishCatchTime' was added

Type 'FishCatchTime' was added
"The fish can always be caught."
ALWAYS

"The fish can only be caught during daytime."
DAY

"The fish can only be caught during nighttime."
NIGHT
}

"""
The weight of a fish.
Note that some weights are not used for crabs, or are only used for crabs.
"""
enum FishWeight {

Check notice on line 49 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Type 'FishWeight' was added

Type 'FishWeight' was added
"Average."
AVERAGE

"Large."
LARGE

"""
Massive.
This weight is not used for crabs.
"""
MASSIVE

"""
Gargantuan.
This weight is not used for crabs.
"""
GARGANTUAN

"""
Colossal.
This weight is only used for crabs.
"""
COLOSSAL
}

"A record of the weight of fish that have been caught."
type FishRecord {

Check notice on line 79 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Type 'FishRecord' was added

Type 'FishRecord' was added
"The fish this record is for."
fish: Fish!

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

"A rank."
enum Rank {
"The Champ rank."
Expand Down Expand Up @@ -167,6 +243,11 @@ type Collections {
collection: String = null
@spectaql(options: { key: "example", value: "Oceanic" })
): [CosmeticOwnershipState!]!

"Returns the record data for all fish, optionally in a specific collection."
fish(

Check notice on line 248 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Field 'fish' was added to object type 'Collections'

Field 'fish' was added to object type 'Collections'
collection: String = null
): [FishRecord!]!
}

"The ownership state of a cosmetic."
Expand Down

0 comments on commit 12b6469

Please sign in to comment.