Open alymurtazamemon opened 1 year ago
@PatrickAlphaC
Are you sure this new version returns results?
@PatrickAlphaC Yes! At the start, I tried to query with 8 zeros buyer address but it did not returned anything, then when I removed the where clause from the query I found that buyer address that we were passing to where clasue was wrong and after updating to this full zeros address it was working fine that is why I sent the pull request to update it.
@PatrickAlphaC people are facing issues due to this, here you can see link
Ok... it feels weird. I remember testing it as is and it was working. Did the graph maybe update?
@PatrickAlphaC No Graph not updated, the thing is in the video you were not creating the buyer address as mentioned in my first post above. But now we are sending the buyer's address to the graph as this 0x0000000000000000000000000000000000000000
, so for that reason for the query we need to use the same address otherwise, it will not return the results.
When I was stuck on that problem, I first check on the graph dashboard without passing any filter and then realize that the buyer address that we are using for a filter is different than what we are passing.
@PatrickAlphaC I solved the same issue in the same way. Here is my query code.
activeItems(first: 5, where: { buyer: "0x000000000000000000000000000000000000dead" }) {
id
buyer
seller
nftAddress
tokenId
prcie
}
I have the same issue, the full null address solve it.
@alymurtazamemon
Thank you so much for this!
In the graphql repo code we are saving this address for the buyer:
Due to that, this GraphQL query returns nothing:
I have updated this to both these files
graphExample.js
&subgraphQueries.js