items

This query loads the items within a collection.

General Pattern

{
  items (offset: Int limit: Int statuses: MarketplaceCollectionItemStatus!){
    field_1
    field_1{
      nested_field_1
      ...
    }
  }
}

Sample query

query{
  collection(id:"1fbd6e93-02f0-440b-a29b-fa0adc1950da"){
    items(offset:0
    limit:1
    statuses:Preview){
     id
      marketplaceTokenId
      collectionId
      saleType
     name
      slug
    }
  }
}

Sample response

{
  "data": {
    "collection": {
      "items": []
    }
  }
}

Arguments

NameTypeDescriptionRequired
offsetIntegerThe minimum amount of the displayed results.Yes
limitIntegerThe maximum amount of the displayed results.Yes
statusesEnumContains information from MarketplaceCollectionItemStatusYes

Fields

NameTypeDescription
MarketplaceCollectionItemObjectContains information from [MarketplaceCollectionItem] (https://developers.mojito.xyz/reference/marketplacecollectionitem)

Example

Load the collection item by the collection ID: