Skip to content

Commit

Permalink
Update indexing.md (#8810)
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenyang007 authored and gedigi committed Aug 2, 2023
1 parent f7ce55e commit 6a29379
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions developer-docs-site/docs/integration/indexing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
) {
Expand Down Expand Up @@ -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
) {
Expand Down Expand Up @@ -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
) {
Expand Down Expand Up @@ -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
) {
Expand Down

0 comments on commit 6a29379

Please sign in to comment.