Segment
Requires access scope. Also: The user must not have restricted access.
A dynamic collection of customers based on specific criteria.
Anchor to FieldsFields
- Anchor to creationDatecreation•Date
Date Time!non-null The date and time when the segment was added to the store.
- •ID!non-null
A globally-unique ID.
- Anchor to lastEditDatelast•Date
Edit Date Time!non-null The date and time when the segment was last updated.
- Anchor to namename•String!non-null
The name of the segment.
- Anchor to queryquery•String!non-null
A precise definition of the segment. The definition is composed of a combination of conditions on facts about customers.
Anchor to QueriesQueries
- •query
The Customer Segment.
- •query
A list of a shop's segments.
Anchor to MutationsMutations
- •mutation
Creates a segment.
- Anchor to namename•String!required
The name of the segment to be created. Segment names must be unique.
- Anchor to queryquery•String!required
A precise definition of the segment. The definition is composed of a combination of conditions on facts about customers such as
with this syntax.
Arguments
- Anchor to segmentsegment•Segment
The newly created segment.
- Anchor to userErrorsuser•[User
Errors Error!]!non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Updates a segment.
- •ID!required
Specifies the segment to be updated.
- Anchor to namename•String
The new name for the segment.
- Anchor to queryquery•String
A precise definition of the segment. The definition is composed of a combination of conditions on facts about customers such as
with this syntax.
Arguments
- Anchor to segmentsegment•Segment
The updated segment.
- Anchor to userErrorsuser•[User
Errors Error!]!non-null The list of errors that occurred from executing the mutation.
Fields