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

fish (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 availableNow to specify where you're looking. Defaults to NORTHERN.

The default value is NORTHERN.

last Int

Returns the last n elements from the list.

insects (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 false, all creatures will be included.

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 availableNow to specify where you're looking. Defaults to NORTHERN.

The default value is NORTHERN.

last Int

Returns the last n elements from the list.

items (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.

recipes (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.

seaCreatures (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 false, all creatures will be included.

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 availableNow to specify where you're looking. Defaults to NORTHERN.

The default value is NORTHERN.

last Int

Returns the last n elements from the list.

storage (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.

villagers (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

balance (Int!)

Returns your current account balance in Bells.

creature (Creature!)

Returns a single creature by name.

Argument Type Description
name String!

The name of the creature.

item (Item!)

Returns a single item by name.

Argument Type Description
name String!

The name of the item.

node (Node)

Fetches an object given its ID.

Argument Type Description
id ID!

ID of the object.

nodes ([Node]!)

Fetches a list of objects given a list of IDs.

Argument Type Description
ids [ID!]!

IDs of the objects.

recipe (Recipe!)

Returns a single recipe by the name of the crafted item.

Argument Type Description
name String!

The name of the crafted item.

villager (Villager!)

Returns a single villager by name.

Argument Type Description
name String!

The name of the villager. This argument is case sensitive.