Skip to content

Commit

Permalink
Adjust documentation with new sort order syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
deekerno committed May 8, 2023
1 parent a89d6af commit e5ae08e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Putting all of that together, we get the following query:
```graphql
query {
transactions: tx(
order: { desc: timestamp },
order: { timestamp: desc },
filter: { value: { gt: 0 } },
first: 2,
offset: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Let's use the [block explorer](../../../examples/block-explorer.md) example to i

```graphql
query {
blocks: block(order: { asc: height }, first: 5) {
blocks: block(order: { height: asc }, first: 5) {
hash
height
timestamp
Expand Down Expand Up @@ -70,7 +70,7 @@ As you can see, we get the requested amount of blocks and the corresponding fiel
```graphql
query {
blocks: block(
order: { asc: height },
order: { height: asc },
first: 5,
offset: 5
) {
Expand Down

0 comments on commit e5ae08e

Please sign in to comment.