Anchor to section titled 'undefined'

customerSegmentMembersQueryCreate
mutation

Requires write_customers access scope.

Creates a customer segment members query.


The input fields to create a customer segment members query.


Was this section helpful?

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
}