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