Collection
Represents a collection of products.
type Collection implements Node, ObjectWithMetadata {
id: ID!
publicationDate: Date
privateMetadata: [MetadataItem!]!
metadata: [MetadataItem!]!
description: String!
descriptionHtml: String!
seoTitle: String
seoDescription: String
isVisible: Boolean!
name: String!
slug: String!
products(
filter: ProductFilterInput
sortBy: ProductOrder
before: String
after: String
first: Int
last: Int
): ProductCountableConnection
variants(
filter: ProductVariantFilterInput
sortBy: VariantSortingInput
before: String
after: String
first: Int
last: Int
): ProductVariantCountableConnection
backgroundImage(
size: Int
): Image
isPublished: Boolean!
type: CollectionTypeEnum
customFields: [SelectedAttribute!]!
sales: [Sale!]!
vouchers: [Voucher!]!
onSale: Boolean
}
Fields
Collection.id ● ID! non-null scalar
The ID of the object
Collection.publicationDate ● Date scalar
Collection.privateMetadata ● [MetadataItem!]! non-null object
List of private metadata items.Requires proper staff permissions to access.
Collection.metadata ● [MetadataItem!]! non-null object
List of public metadata items. Can be accessed without permissions.
Collection.description ● String! non-null scalar
Collection.descriptionHtml ● String! non-null scalar
Collection.seoTitle ● String scalar
Collection.seoDescription ● String scalar
Collection.isVisible ● Boolean! non-null scalar
Collection.name ● String! non-null scalar
Collection.slug ● String! non-null scalar
Collection.products ● ProductCountableConnection object
List of products in this collection.
Collection.products.filter ● ProductFilterInput input
Filtering options for products.
Collection.products.sortBy ● ProductOrder input
Sort products.
Collection.products.before ● String scalar
Return the elements in the list that come before the specified cursor.
Collection.products.after ● String scalar
Return the elements in the list that come after the specified cursor.
Collection.products.first ● Int scalar
Return the first n elements from the list.
Collection.products.last ● Int scalar
Return the last n elements from the list.
Collection.variants ● ProductVariantCountableConnection object
List of variants in this collection.
Collection.variants.filter ● ProductVariantFilterInput input
Filtering options for variants.
Collection.variants.sortBy ● VariantSortingInput input
Sort variants.
Collection.variants.before ● String scalar
Return the elements in the list that come before the specified cursor.
Collection.variants.after ● String scalar
Return the elements in the list that come after the specified cursor.
Collection.variants.first ● Int scalar
Return the first n elements from the list.
Collection.variants.last ● Int scalar
Return the last n elements from the list.
Collection.backgroundImage ● Image object
Collection.backgroundImage.size ● Int scalar
Size of the image.
Collection.isPublished ● Boolean! non-null scalar
Whether the collection is published.
Collection.type ● CollectionTypeEnum enum
Collection type.
Collection.customFields ● [SelectedAttribute!]! non-null object
List of custom fields assigned to this collection.
Collection.sales ● [Sale!]! non-null object
List of sales associated with the collection.
Collection.vouchers ● [Voucher!]! non-null object
List of vouchers associated with the collection.
Collection.onSale ● Boolean scalar
Displays if this collection is on sale
Interfaces
Node interface
An object with an ID
ObjectWithMetadata interface
Returned By
collection query
Member Of
CollectionAddProducts object ● CollectionAddVariants object ● CollectionCountableEdge object ● CollectionCreate object ● CollectionDelete object ● CollectionRemoveProducts object ● CollectionRemoveVariants object ● CollectionReorderProducts object ● CollectionUpdate object ● MenuItem object ● Product object
Implemented By
CustomFieldInstance union