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