Storefront GraphQL APIReferenceObjects
Collection
type
CollectionFields
- fields
_id*ID!logo?name?Stringslug?StringURL handle used in storefront links (/collections/{slug})
description?StringparentCategory?IDParent collection ID for subcollection hierarchy
level?IntDepth level in the hierarchy
sortOrder?IntPosition among sibling collections (ascending). Ties sort by name.
children?Child subcollections (populated via virtual)
isDemo?Booleantenant?Stringcommits?createdAt?DateTimeA date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
updatedAt?DateTimeA date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
Usages
- Field of
Collection.childrenProduct.collectionsStorefrontCollection.childrenStorefrontProduct.collections
type Collection { _id: ID! logo: ServerFileReference name: String slug: String description: String parentCategory: ID level: Int sortOrder: Int children: [Collection!] isDemo: Boolean tenant: String commits: [ResourceCommitHistoryReference!] createdAt: DateTime updatedAt: DateTime}