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

GraphQL returns error when fetching transactions with anchor if there's bundled transaction that matches query #4

Open
angrymouse opened this issue Oct 19, 2022 · 1 comment

Comments

@angrymouse
Copy link

Example of response when it happens:

{
    "errors": [
        {
            "message": "Cannot return null for non-nullable field Transaction.anchor.",
            "locations": [
                {
                    "line": 1,
                    "column": 470
                }
            ],
            "path": [
                "transactions",
                "edges",
                0,
                "node",
                "anchor"
            ],
            "extensions": {
                "code": "INTERNAL_SERVER_ERROR"
            }
        }
    ],
    "data": null
}
@angrymouse
Copy link
Author

2 possible correct behavoirs:

  • Exclude transactions without anchor (bundled but not mined)
  • Return all transactions, but set anchor to null on transactions that aren't having it yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant