From c5e3be9536d99ed6d3873e54e38769fb430f91ce Mon Sep 17 00:00:00 2001 From: roiLeo Date: Fri, 3 Sep 2021 16:24:19 +0200 Subject: [PATCH 1/6] feat(gallery): query to hide burned nft --- src/components/rmrk/Gallery/Search/query.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/rmrk/Gallery/Search/query.ts b/src/components/rmrk/Gallery/Search/query.ts index 0ec3dca8e9..204d0a2157 100644 --- a/src/components/rmrk/Gallery/Search/query.ts +++ b/src/components/rmrk/Gallery/Search/query.ts @@ -28,6 +28,11 @@ const queryOf = (criteria: QueryType) => new Query(criteria) export const basicAggregation = (): Aggregator => { const agg: Aggregation = [ + { + $match: { + burned: { $ne: true } + } + }, { $group: { _id: { image: '$image', collection: '$collection' }, From 85aa9a0b2c7fc7ffa93795af2ff9b007eef19769 Mon Sep 17 00:00:00 2001 From: roiLeo Date: Sat, 4 Sep 2021 11:34:20 +0200 Subject: [PATCH 2/6] feat(gallery): query to hide burned nft from profile Created --- src/queries/nftListByIssuer.graphql | 1 + 1 file changed, 1 insertion(+) diff --git a/src/queries/nftListByIssuer.graphql b/src/queries/nftListByIssuer.graphql index 73feda5a33..d78a6568c9 100644 --- a/src/queries/nftListByIssuer.graphql +++ b/src/queries/nftListByIssuer.graphql @@ -5,6 +5,7 @@ query nftListByIssuer($account: String!, $first: Int!, $offset: Int) { filter: { issuer: { equalTo: $account } name: { notLike: "%Kanaria%" } + burned: { distinctFrom: true } } orderBy: BLOCK_NUMBER_DESC first: $first From fb1f2aeeff95d089d7f25afcaaa0a77e9227e0d5 Mon Sep 17 00:00:00 2001 From: roiLeo Date: Mon, 6 Sep 2021 08:39:04 +0200 Subject: [PATCH 3/6] feat(gallery): query to hide burned nft from profile created --- src/queries/firstNftByIssuer.graphql | 1 + 1 file changed, 1 insertion(+) diff --git a/src/queries/firstNftByIssuer.graphql b/src/queries/firstNftByIssuer.graphql index 12cff545f9..0458041cb7 100644 --- a/src/queries/firstNftByIssuer.graphql +++ b/src/queries/firstNftByIssuer.graphql @@ -5,6 +5,7 @@ query firstNftByIssuer($account: String!) { filter: { issuer: { equalTo: $account } name: { notLike: "%Kanaria%" } + burned: { distinctFrom: true } } orderBy: BLOCK_NUMBER_DESC first: 1 From 8b7aa08220d1ee5fde94dd1c9bfc215cb0912a4b Mon Sep 17 00:00:00 2001 From: roiLeo Date: Mon, 6 Sep 2021 08:42:39 +0200 Subject: [PATCH 4/6] feat(gallery): query to hide burned nft from profile sold --- src/queries/nftListSold.graphql | 1 + 1 file changed, 1 insertion(+) diff --git a/src/queries/nftListSold.graphql b/src/queries/nftListSold.graphql index 81f41c5195..4144b057ed 100644 --- a/src/queries/nftListSold.graphql +++ b/src/queries/nftListSold.graphql @@ -6,6 +6,7 @@ query nftListSold($account: String!, $first: Int!, $offset: Int) { issuer: { equalTo: $account } currentOwner: { notEqualTo: $account } name: { notLike: "%Kanaria%" } + burned: { distinctFrom: true } } orderBy: BLOCK_NUMBER_DESC first: $first From 4b303762861f00d112c567ae1e55f9381c360e5e Mon Sep 17 00:00:00 2001 From: roiLeo Date: Mon, 6 Sep 2021 08:43:09 +0200 Subject: [PATCH 5/6] feat(gallery): query to hide burned nft from profile Collected --- src/queries/nftListCollected.graphql | 1 + 1 file changed, 1 insertion(+) diff --git a/src/queries/nftListCollected.graphql b/src/queries/nftListCollected.graphql index 9c4fbb8519..d7e184564e 100644 --- a/src/queries/nftListCollected.graphql +++ b/src/queries/nftListCollected.graphql @@ -6,6 +6,7 @@ query nftListCollected($account: String!, $first: Int!, $offset: Int) { issuer: { notEqualTo: $account } currentOwner: { equalTo: $account } name: { notLike: "%Kanaria%" } + burned: { distinctFrom: true } } orderBy: BLOCK_NUMBER_DESC first: $first From b7a8af3657294b6ae0288da76b07bcee8d7cef31 Mon Sep 17 00:00:00 2001 From: roiLeo Date: Mon, 6 Sep 2021 09:07:30 +0200 Subject: [PATCH 6/6] feat(gallery): query to hide burned nft from Collection Id --- src/queries/collectionById.graphql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/queries/collectionById.graphql b/src/queries/collectionById.graphql index 646a0a2e57..db37790660 100644 --- a/src/queries/collectionById.graphql +++ b/src/queries/collectionById.graphql @@ -3,12 +3,13 @@ query collectionById($id: String!) { collectionEntity(id: $id) { ...collection - nfts { + nfts(filter: { burned: { distinctFrom: true } }) { nodes { id metadata name price + burned } } }