Types > OptionCreate
Commerce APITypesOptionCreate
OptionCreate

Description

Topic: Options

Fields

id: String!

A unique human-readable option identifier

Example: "size"

Valid when: id matches regexp pattern: ^[0-9a-z_]+$

Valid when: id's length doesn't exceed 250 characters


meta: String

Metadata of the option

Example: "color"

Valid when: meta's length doesn't exceed 250 characters


name: String!

Name of the option

Example: "Size"

Valid when: name is not empty

Valid when: name's length doesn't exceed 250 characters


values: [OptionValueCreate!]!

Option values


Used By

Mutations

optionsCreate

Preview (typescript)

Loading module