Skip to content

Commit

Permalink
Merge pull request kodadot#7700 from kodadot/collection-filter
Browse files Browse the repository at this point in the history
  • Loading branch information
yangwao authored Oct 17, 2023
2 parents a3a2947 + b7ef800 commit 613dd1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/items/ItemsGrid/useItemsGrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ export function useFetchSearch({
case 'price_gt':
acc['price_gt'] = Number(value)
break
case 'collection':
acc['collections'] = (value as { id_in: string[] }).id_in
}
}
return acc
Expand Down
3 changes: 3 additions & 0 deletions queries/subsquid/general/tokenListWithSearch.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ query tokenListWithSearch(
$owner: String
$issuer: String
$denyList: [String!]
$collections: [String!]
) {
tokenEntities: tokenEntityList(
owner: $owner
Expand All @@ -19,6 +20,7 @@ query tokenListWithSearch(
price_gte: $price_gte
price_gt: $price_gt
price_lte: $price_lte
collections: $collections
) {
id
name
Expand Down Expand Up @@ -49,6 +51,7 @@ query tokenListWithSearch(
price_gte: $price_gte
price_gt: $price_gt
price_lte: $price_lte
collections: $collections
) {
totalCount
}
Expand Down

0 comments on commit 613dd1b

Please sign in to comment.