App reviews, troubleshooting, and recommendations
I am new to graphql and i dont understand where on earth I can find out which properties and subproperties are available in a given object.
for example
query Input { cart { buyerIdentity { customer { numberOfOrders } } cost { subtotalAmount { amount } } lines { id # cost merchandise { title weight } quantity } } }
Merchandise says it has a CustomProduct but the docs don't give you what the variable is actually called. I thought maybe to add it without the product but it's not working. It does not seem very straightforward.
Can anyone help?
Here you go:
query Input {
cart {
buyerIdentity {
customer {
numberOfOrders
}
}
cost {
subtotalAmount {
amount
}
}
lines {
id
attribute(key: "myCustomKey") {
key
value
}
# cost
merchandise {
title
weight
}
quantity
}
}
}
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025