Comment on page
Customers
Manage your customers
createCustomer.gql
mutation {
createCustomer(
email: "[email protected]",
firstName: "John",
lastName: "Doe"
) {
id
email
firstName
lastName
}
}
query {
account {
merchantCustomers {
nodes {
id
email
firstName
lastName
}
pageInfo {
startCursor
endCursor
hasNextPage
hasPreviousPage
}
}
}
}
merchantCustomers
is a paginated field. To fetch more data, you can pass in an endCursor
as an after
argument to it.query {
account {
merchantCustomer(after: "Mg") {
...
}
}
}gra
customer.gql
query {
node(id: "TWVyY2hhbnRDdXN0b21lci05ODFmYzVjMy1jNjYwLTQyMzAtYTgzNi0xM2EyOWZlMjRiOWY=") {
... on MerchantCustomer {
id
email
firstName
lastName
p2pPaymentMethods {
id
value
}
}
}
}
Last modified 9mo ago