diff --git a/developer-docs-site/docs/integration/indexing.md b/developer-docs-site/docs/integration/indexing.md index 4a1e83ce059f4..aa0e433f9d885 100644 --- a/developer-docs-site/docs/integration/indexing.md +++ b/developer-docs-site/docs/integration/indexing.md @@ -72,7 +72,7 @@ Getting all tokens currently in account. query CurrentTokens($owner_address: String, $offset: Int) { current_token_ownerships( where: {owner_address: {_eq: $owner_address}, amount: {_gt: "0"}, table_type: {_eq: "0x3::token::TokenStore"}} - order_by: {last_transaction_version: desc} + order_by: [{last_transaction_version: desc}, {token_data_id: desc}] offset: $offset ) { token_data_id_hash @@ -103,7 +103,7 @@ query TokenActivities($token_id_hash: String, $offset: Int) { token_activities( where: {token_data_id_hash: {_eq: $token_id_hash}} # Needed for pagination - order_by: {transaction_version: desc} + order_by: [{last_transaction_version: desc}, {event_index: asc}] # Optional for pagination offset: $offset ) { @@ -137,7 +137,7 @@ query CurrentOffers($to_address: String, $offset: Int) { current_token_pending_claims( where: {to_address: {_eq: $to_address}, amount: {_gt: "0"}} # Needed for pagination - order_by: {last_transaction_version: desc} + order_by: [{last_transaction_version: desc}, {token_data_id: desc}] # Optional for pagination offset: $offset ) { @@ -171,7 +171,7 @@ query CoinActivity($owner_address: String, $offset: Int) { coin_activities( where: {owner_address: {_eq: $owner_address}} # Needed for pagination - order_by: {transaction_version: desc} + order_by: [{last_transaction_version: desc}, {event_index: asc}] # Optional for pagination offset: $offset ) { @@ -204,7 +204,7 @@ query CurrentBalances($owner_address: String, $offset: Int)Ï { current_coin_balances( where: {owner_address: {_eq: $owner_address}} # Needed for pagination - order_by: {last_transaction_version: desc} + order_by: [{last_transaction_version: desc}, {token_data_id: desc}] # Optional for pagination offset: $offset ) {