Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: filter owner by the address and not the id #1820

Merged
merged 8 commits into from
Dec 4, 2024
2 changes: 1 addition & 1 deletion lambdas/src/ports/the-graph/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Loading