SKUPattern
A rule that builds SKUs from placeholders such as brand, category and a running number.
type SKUPattern {
brand: Brand
brandId: ID
category: Category
categoryId: ID
createdAt: DateTime!
deletedAt: DateTime
deletedBy: String
description: String
enteredBy: String!
example: String
id: ID!
isActive: Boolean!
name: String!
organizationId: String!
pattern: String!
priority: Int!
sequenceLength: Int!
updatedAt: DateTime!
updatedBy: String!
}
Fields
SKUPattern.brand ● Brand object
The brand the pattern applies to.
SKUPattern.brandId ● ID scalar
The ID of the brand.
SKUPattern.category ● Category object
The category the pattern applies to.
SKUPattern.categoryId ● ID scalar
The ID of the category.
SKUPattern.createdAt ● DateTime! non-null scalar
When the record was created.
SKUPattern.deletedAt ● DateTime scalar
When the record was deleted. Empty while the record is live.
SKUPattern.deletedBy ● String scalar
The ID of the user who deleted the record.
SKUPattern.description ● String scalar
What the pattern is for.
SKUPattern.enteredBy ● String! non-null scalar
The ID of the user who created the record.
SKUPattern.example ● String scalar
An example of a generated SKU.
SKUPattern.id ● ID! non-null scalar
The unique ID of this record.
SKUPattern.isActive ● Boolean! non-null scalar
Whether the record is active.
SKUPattern.name ● String! non-null scalar
The name of the pattern.
SKUPattern.organizationId ● String! non-null scalar
The ID of the organization the record belongs to.
SKUPattern.pattern ● String! non-null scalar
The pattern, using placeholders such as {BRAND}-{CATEGORY}-{SEQ}.
SKUPattern.priority ● Int! non-null scalar
Which pattern wins when several match. Defaults to 1.
SKUPattern.sequenceLength ● Int! non-null scalar
How many digits the running number has. Defaults to 4.
SKUPattern.updatedAt ● DateTime! non-null scalar
When the record was last changed.
SKUPattern.updatedBy ● String! non-null scalar
The ID of the user who last changed the record.
Returned By
createSKUPattern mutation ● deleteSKUPattern mutation ● skuPatterns query ● updateSKUPattern mutation