Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceObjects

Collection

typeCollection

Fields

  1. fields
_id*ID!
children?

Child subcollections (populated via virtual)

commits?
createdAt?DateTime

A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.

description?String
isDemo?Boolean
level?Int

Depth level in the hierarchy

logo?
name?String
parentCategory?ID

Parent collection ID for subcollection hierarchy

slug?String

URL handle used in storefront links (/collections/{slug})

sortOrder?Int

Position among sibling collections (ascending). Ties sort by name.

tenant?String
updatedAt?DateTime

A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.

Usages

Field of
Collection.childrenCollectionsWithPagination.nodesProduct.collections
SDL
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}