GraphQL examples for customers

Example GraphQL queries and mutations for working with customers.

Querying customers

For more information, see the customer object reference.

Get a customer's name, email, and default address

View response

Get two specific customers by their ID using aliases

View response

Get the email, name, and account creation date of three customers using a fragment

View response

Get all a customer's fields and connections