Query
Every GiraffeQL schema has a root type for both queries and mutations. The query type defines GiraffeQL operations that retrieve data from the server.
Connections
FishConnection!
)
Returns a paginated list of fish.
Argument | Type | Description |
---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
availableNow |
Boolean
|
If provided, allows you to filter by fish that can be caught right at this very moment. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
hemisphere |
Hemisphere
|
Should be provided along with The default value is |
last |
Int
|
Returns the last n elements from the list. |
InsectConnection!
)
Returns a paginated list of insects.
Argument | Type | Description |
---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
availableNow |
Boolean
|
If provided, allows you to filter by insects that can be caught right at
this very moment. If set to |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
hemisphere |
Hemisphere
|
Should be provided along with The default value is |
last |
Int
|
Returns the last n elements from the list. |
ItemConnection!
)
Returns a paginated list of items.
Argument | Type | Description |
---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
RecipeConnection!
)
Returns a paginated list of recipes.
Argument | Type | Description |
---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
SeaCreatureConnection!
)
Returns a paginated list of sea creatures.
Argument | Type | Description |
---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
availableNow |
Boolean
|
If provided, allows you to filter by sea creatures that can be caught right
at this very moment. If set to |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
hemisphere |
Hemisphere
|
Should be provided along with The default value is |
last |
Int
|
Returns the last n elements from the list. |
StorageConnection!
)
Returns a list of items you currently have in storage.
Argument | Type | Description |
---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
VillagerConnection!
)
Returns a paginated list of villagers.
Argument | Type | Description |
---|---|---|
after |
String
|
Returns the elements in the list that come after the specified cursor. |
before |
String
|
Returns the elements in the list that come before the specified cursor. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
species |
Species
|
The species of villager you would like to filter by, if any. |
Fields
Int!
)
Returns your current account balance in Bells.
Creature!
)
Returns a single creature by name.
Argument | Type | Description |
---|---|---|
name |
String!
|
The name of the creature. |
Item!
)
Returns a single item by name.
Argument | Type | Description |
---|---|---|
name |
String!
|
The name of the item. |
[Node]!
)
Fetches a list of objects given a list of IDs.
Argument | Type | Description |
---|---|---|
ids |
[ID!]!
|
IDs of the objects. |