blocklytics / spells-subgraph

Graph protocol subgraph for Spells.fyi
MIT License
6 stars 2 forks source link

Bug fix: Null value for field `target` #6

Closed calebsheridan closed 4 years ago

calebsheridan commented 4 years ago

Steps to recreate

  1. Run query https://thegraph.com/explorer/subgraph/blocklytics/spells?query=Transactions
  2. Receive the following result:
{
  "errors": [
    {
      "locations": [
        {
          "line": 12,
          "column": 5
        }
      ],
      "message": "Null value resolved for non-null field `target`"
    },
    {
      "locations": [
        {
          "column": 5,
          "line": 12
        }
      ],
      "message": "Null value resolved for non-null field `target`"
    },
    {
      "locations": [
        {
          "line": 12,
          "column": 5
        }
      ],
      "message": "Null value resolved for non-null field `target`"
    },
    {
      "locations": [
        {
          "column": 5,
          "line": 12
        }
      ],
      "message": "Null value resolved for non-null field `target`"
    },
    {
      "locations": [
        {
          "line": 12,
          "column": 5
        }
      ],
      "message": "Null value resolved for non-null field `target`"
    }
  ]
}

Expectation

There are no null values for target. This may need to be hardcoded for certain platforms.

calebsheridan commented 4 years ago

Resolved