MetaweaveTeam / arweave-account

Account protocol library on Arweave by Metaweave.xyz
https://www.npmjs.com/package/arweave-account
15 stars 10 forks source link

Exclude anchor from search #14

Closed angrymouse closed 1 year ago

angrymouse commented 1 year ago

When fetching anchor via graphql, there is chance you will get bundled transaction, which has anchor set to null until bundle is settled. It results to fail of fetching and "default" profile as result (until bundle is settled).


{
  "errors": [
    {
      "message": "Cannot return null for non-nullable field Transaction.anchor.",
      "locations": [
        {
          "line": 1,
          "column": 362
        }
      ],
      "path": [
        "transactions",
        "edges",
        0,
        "node",
        "anchor"
      ],
      "extensions": {
        "code": "INTERNAL_SERVER_ERROR"
      }
    }
  ],
  "data": null
}
``` (response from gateway)