Links
Comment on page

Common Parameters

All our queries follow the same pattern.

Parameters when querying a list

All parameters are optional.
  • skip: Where to start pagination. Default: 0.
  • first: The number of items to query. Default: 100.
  • orderBy: The key of the item used to sort them.
  • orderDirection: asc or desc. Default: asc.
  • where: All fields can be used to operate advance queries.
Example: query the first 10 MintedBadges ordered by level
query {
mintedBadges(first: 10, orderBy: level) {
level
badge {
tokenId
}
}
}

Parameters when querying one item

Only the id is mandatory.
  • id: The id of the item to query
Example with the id "10000009-polygon-0xf61cabba1e6fc166a66bca0fcaa83762edb6d4bd"
In English, it would mean: "query the Minted Badge with the tokenId 10000009 for the address 0xf61cabba1e6fc166a66bca0fcaa83762edb6d4bd on Polygon."
query {
mintedBadge(
id: "10000026-polygon-0xf61cabba1e6fc166a66bca0fcaa83762edb6d4bd",
) {
level
badge {
tokenId
}
}
}