Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
karatakis committed Nov 15, 2022
1 parent 4a65d38 commit 85a651a
Showing 1 changed file with 45 additions and 3 deletions.
48 changes: 45 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ Go to http://localhost:8000/ and try out the following queries:
description
releaseYear
filmActor {
actor {
firstName
lastName
nodes {
actor {
firstName
lastName
}
}
}
}
Expand Down Expand Up @@ -135,6 +137,46 @@ Go to http://localhost:8000/ and try out the following queries:
}
```

### Complex query with filters on relations
Find all inactive customers, include their address, and their payments with amount greater than 7 ordered by amount the second result
```graphql
{
customer(
filters: { active: { eq: 0 } }
) {
nodes {
customerId
lastName
email
address {
address
}
payment(
filters: { amount: { gt: "7" } }
orderBy: { amount: ASC }
pagination: { pages: { limit: 1, page: 1 } }
) {
nodes {
paymentId
amount
}
pages
current
pageInfo {
hasPreviousPage
hasNextPage
}
}
}
pageInfo {
hasPreviousPage
hasNextPage
endCursor
}
}
}
```

### Postgres

Setup the [sakila](https://github.com/SeaQL/seaography/blob/main/examples/postgres/sakila-schema.sql) sample database.
Expand Down

0 comments on commit 85a651a

Please sign in to comment.