GraphQL
Reading data with GraphQL
{% capture query %}
query {
orders(first: 5, query: "financial_status:paid") {
nodes {
id
name
totalPriceSet {
shopMoney {
amount
}
}
}
}
}
{% endcapture %}
{% assign result = query | shopify %}
{% for order in result.data.orders.nodes %}
{{ order.name }}: {{ order.totalPriceSet.shopMoney.amount }}
{% endfor %}Writing data with GraphQL
Learn more
Last updated
Was this helpful?