GraphQL Query for Customer Data Retrieval

This snippet demonstrates a GraphQL query designed to retrieve customer data, including personal details and wishlists. It captures extensive details about the customer's profile and the products in each wishlist, allowing for detailed client-side data manipulations.
 avatar
unknown
graphqlschema
6 months ago
829 B
3
Indexable
query Customer {
customer {
entity_id
firstname
lastname
email,
date_of_birth,
cellphone,
country_code,
gender,
profile_image
wishlists{
id
name
visibility
items_count
items_v2{
items{
id
product{
prescription_required
name
sku
url_key
... on ConfigurableProduct {
variants {
attributes {
uid
label
code
}
}
}
related_products {
uid
name
sku
}
upsell_products {
uid
name
sku
}
crosssell_products {
uid
name
sku
}
catalog_extended
description{
html
}
image{
label
url
}
small_image{
label
url
}
media_gallery {
url
label
position
disabled
}
rating_summary
review_count
price_range {
minimum_price {
discount{
amount_off
percent_off
}
final_price{
value
currency
}
regular_price {
value
currency
}
}
maximum_price {
final_price {
currency
value
}
regular_price {
currency
value
}
discount {
amount_off
percent_off
}
}
}
}
}
}
}
}
}
Editor is loading...
Leave a Comment