Seller Total
In this example we show you how to return the total unique number of Sellers
less than a minute
What you’ll learn
- How to return the total number of Sellers for a given invoice paid at date
The Query
query {
invoiceSummary(
where: {
invoicePaidAt: { gt: "2020-10-10" }
sellerAccountType: { eq: retailer }
}) {
sellerIdDistinctcount
}
}
The Response
{
"data": {
"invoiceSummary": [
{
"sellerIdDistinctcount": 138
}
]
}
}