A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I'm trying to get a total number of customers in the store or all the customer list id's in the store using GraphQl admin API, Can anyone give solution for this?
Solved! Go to the solution
This is an accepted solution.
hi @Eric-HAN
I have got total number of customers using this query , IT might help someone. thank you.
graphql does not have such an api, use the rest api.
https://shopify.dev/docs/api/admin-rest/2024-10/resources/customer#get-customers-count
Hi,there
all the customer list ids. pls refer to below code
query GetAllCustomerIDs {
customers(first: 250) {
edges {
node {
id
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
This is an accepted solution.
hi @Eric-HAN
I have got total number of customers using this query , IT might help someone. thank you.