Skip to content

Instantly share code, notes, and snippets.

@danielrearden
Created May 15, 2020 04:13
Show Gist options
  • Save danielrearden/bdf08de9af0328b57bc42327a86ed454 to your computer and use it in GitHub Desktop.
Save danielrearden/bdf08de9af0328b57bc42327a86ed454 to your computer and use it in GitHub Desktop.
Making GraphQL Magic with Sqlmancer - 12
query {
customers(
where: { firstName: { like: "L%" } }
orderBy: [{ invoices: { sum: { total: DESC } } }]
limit: 5
) {
id
firstName
lastName
invoices(
limit: 3
orderBy: { total: DESC }
) {
id
total
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment