I’ve been unable to find the answer in documentation, SO or this community so far, so I have to ask:
How do I get the last 5 most recent orders via GraphQL Admin API?
My current query is below. I also tried using last:5 but it requires a before param and I don’t understand why or how to use that. Also please correct my customAttributes query syntax if it’s wrong.
{
orders(first:5) {
edges {
node {
id
name
customAttributes
{
key:value
}
}
}
}
}