Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit

Permalink
Add token_id to graphql query.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkachowski committed Jun 12, 2023
1 parent af00b42 commit 8011aa1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions apps/explorer/lib/explorer/graphql.ex
Original file line number Diff line number Diff line change
Expand Up @@ -246,14 +246,16 @@ defmodule Explorer.GraphQL do
transaction_hash: tt.transaction_hash,
block_number: tt.block_number,
to_address_hash: tt.to_address_hash,
from_address_hash: tt.from_address_hash
from_address_hash: tt.from_address_hash,
token_id: tt.token_id
},
distinct: [desc: tt.block_number, desc: tt.transaction_hash],
order_by: [
desc: tt.block_number,
desc: tt.transaction_hash,
desc: tt.from_address_hash,
desc: tt.to_address_hash
desc: tt.to_address_hash,
desc: tt.token_id
],
limit: ^growing_limit
)
Expand Down Expand Up @@ -281,7 +283,8 @@ defmodule Explorer.GraphQL do
timestamp: b.timestamp,
input: tx.input,
nonce: tx.nonce,
block_number: tt.block_number
block_number: tt.block_number,
token_id: tt.token_id
}
)
|> order_by([transaction: t],
Expand Down

0 comments on commit 8011aa1

Please sign in to comment.