A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I'm trying to use the SalesAgreements GraphQL API and I barely know anything about GraphQL to be honest up front. I'm trying to filter by SalesAgreement.reason = ORDER_EDIT. I've tried putting it everywhere in every format I can find online, but it's not taking any of it. I'm sure this is really simple for someone who knows what they're doing?
query timeStampVars($happened_at: String) {
orders(first: 5, query: $happened_at) {
edges {
node {
id
agreements(first: 5, query:reason:ORDER_EDIT) {
edges {
node {
happenedAt
id
reason
sales(first: 5) {
edges {
node {
... on ProductSale {
id
lineItem {
sku
variant {
id
sku
}
}
}
}
}
}
}
}
}
}
}
}
}
Variables
{
"happened_at":"happened_at:<='2022-08-01T13:00:00Z'"
}