This query loads information about a specific collection.
General pattern
{
collection(id: "String") {
id: UUID1!
marketplaceID: UUID1!
name: String!
slug: String!
description: String!
status: MarketCollectionStatus!
activeDate: Time
collectionType: CollectionType!
items(...){
}
}
}
Sample query
query {
collection(id: "500d9783-a728-41cc-9196-97972d3603a9") {
items (limit: 1) {
lot {
bids {
amount
maximumBid
}
}
}
}
}
Sample response
{
"data": {
"collection": {
"items": [
{
"lot": {
"bids": []
}
}
]
}
}
}
Arguments
Name | Type | Description | Required |
---|---|---|---|
id | String | The collection ID you want to load. | Yes |
Fields
Name | Type | Description |
---|---|---|
MarketplaceCollection | Object | Contains information from MarketplaceCollection such as ID, marketplace ID, name, slug, description, status, start date, end date, collection type, and items. |
Example
Load the collection data with items, lot, and bids information:
Load the collection with basic information using the collection ID: