Skip to content

Issue with The Graph Query #89

Answered by HardlyDifficult
empeje asked this question in Q&A
Discussion options

You must be logged in to vote

Subgraph queries are case sensitive - and for addresses Subgraph uses all lowercase while Foundation.app prefers the checksum format. So to run the query, you should first .toLowerCase() the address. Then the query works with that other address, e.g.:

{
 nftMarketBuyNows(orderBy: dateCreated, orderDirection: desc,
where: {seller:"0xef76173f4eb704e83dbd4c51edd147c95f3adc7c", status: Open}) {
    id,
    dateCreated,
    nft {
      id,
      tokenId,
      dateMinted,
    },
    nftContract {
      id,
      name,
      symbol
    },
    status,
    seller {
      id
    },
    amountInETH,
  }
}

hth - let us know if you have any other questions

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@empeje
Comment options

Answer selected by HardlyDifficult
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants