From 42123ff645458b758c33433e2f2738155cd0bbd6 Mon Sep 17 00:00:00 2001 From: Alexander Date: Mon, 8 May 2023 12:51:20 -0400 Subject: [PATCH] Adjust documentation with new sort order syntax --- .../components/graphql/queries/full-example.md | 2 +- .../reference-guide/components/graphql/queries/pagination.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/reference-guide/components/graphql/queries/full-example.md b/docs/src/reference-guide/components/graphql/queries/full-example.md index 12e58959f..942419c95 100644 --- a/docs/src/reference-guide/components/graphql/queries/full-example.md +++ b/docs/src/reference-guide/components/graphql/queries/full-example.md @@ -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 diff --git a/docs/src/reference-guide/components/graphql/queries/pagination.md b/docs/src/reference-guide/components/graphql/queries/pagination.md index 7d831a965..12ac91633 100644 --- a/docs/src/reference-guide/components/graphql/queries/pagination.md +++ b/docs/src/reference-guide/components/graphql/queries/pagination.md @@ -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 @@ -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 ) {