diff --git a/lambdas/src/ports/the-graph/queries.ts b/lambdas/src/ports/the-graph/queries.ts index a3a171800..2135e09e9 100644 --- a/lambdas/src/ports/the-graph/queries.ts +++ b/lambdas/src/ports/the-graph/queries.ts @@ -31,7 +31,7 @@ query ThirdPartyResolver($id: String!) { const ITEMS_BY_OWNER = ` query itemsByOwner($owner: String, $item_types:[String], $first: Int, $start: String) { - nfts(where: {owner: $owner, searchItemType_in: $item_types, id_gt: $start}, first: $first) { + nfts(where: {owner_: {address: $owner}, searchItemType_in: $item_types, id_gt: $start}, first: $first) { id urn collection { diff --git a/lambdas/test/apis/collections/controller/wearables/wearables-by-owner.spec.ts b/lambdas/test/apis/collections/controller/wearables/wearables-by-owner.spec.ts index 9bbddf520..c16e8ac03 100644 --- a/lambdas/test/apis/collections/controller/wearables/wearables-by-owner.spec.ts +++ b/lambdas/test/apis/collections/controller/wearables/wearables-by-owner.spec.ts @@ -162,7 +162,7 @@ describe('getWearablesByOwner', () => { const query = ` query itemsByOwner($owner: String, $item_types:[String], $first: Int, $start: String) { - nfts(where: {owner: $owner, searchItemType_in: $item_types, id_gt: $start}, first: $first) { + nfts(where: {owner_: {address: $owner}, searchItemType_in: $item_types, id_gt: $start}, first: $first) { id urn collection {