Products Sold Sum
In this example we show you how to return the total number of products sold
less than a minute
What you’ll learn
- How to return the total number of products sold on a given day
The Query
query {
advertSoldSummary(
where: {
invoicePaidAt: { gt: "2020-10-10" }
sellerAccountType: { eq: retailer }
}) {
advertIdDistinctcount
}
}
The Response
{
"data": {
"advertSoldSummary": [
{
"advertIdDistinctcount": 7335
}
]
}
}