Anchor to customerSegmentMembersQueryCreatecustomer
customerSegmentMembersQueryCreate
mutation
Requires access scope.
Creates a customer segment members query.
Anchor to Arguments
Arguments
- Anchor to inputinput•
The input fields to create a customer segment members query.
Was this section helpful?
Anchor to CustomerSegmentMembersQueryCreatePayload returnsCustomerSegmentMembersQueryCreatePayload returns
- Anchor to customerSegmentMembersQuerycustomer•
Segment Members Query The newly created customer segment members query.
- Anchor to userErrorsuser•
Errors The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation customerSegmentMembersQueryCreate($input: CustomerSegmentMembersQueryInput!) {
customerSegmentMembersQueryCreate(input: $input) {
customerSegmentMembersQuery {
# CustomerSegmentMembersQuery fields
}
userErrors {
field
message
}
}
}
Input
{
"input": {
"query": "<your-query>",
"reverse": true,
"segmentId": "gid://shopify/<objectName>/10079785100",
"sortKey": "<your-sortKey>"
}
}
{
"input": {
"query": "<your-query>",
"reverse": true,
"segmentId": "gid://shopify/<objectName>/10079785100",
"sortKey": "<your-sortKey>"
}
}
input CustomerSegmentMembersQueryInput {
query: String
reverse: Boolean
segmentId: ID
sortKey: String
}