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

extract extensions in errors #544

Open
cquiroz opened this issue Sep 10, 2023 · 5 comments
Open

extract extensions in errors #544

cquiroz opened this issue Sep 10, 2023 · 5 comments
Assignees

Comments

@cquiroz
Copy link
Collaborator

cquiroz commented Sep 10, 2023

When getting extensions like:

{
    "errors": [
        {
            "message": "Source too bright, well half filled in 0.76 seconds",
            "extension": {
                "errorCode": "SOURCE_TOO_BRIGHT",
                "error": {
                    "halfWell": 0.76
                }
            }
        }
    ],
    "data": null
}

They don't seem to show up on the error results instead getting:

NonEmptyList(GraphQLError(Source too bright, well half filled in 0.76 seconds,None,None,None))
@armanbilge
Copy link
Contributor

Where did you get that response from? According to the spec it looks like it should be called extensions not extension.

https://spec.graphql.org/October2021/#example-8b658

@cquiroz
Copy link
Collaborator Author

cquiroz commented Sep 10, 2023

Hmm from grackle

@armanbilge
Copy link
Contributor

@armanbilge
Copy link
Contributor

I'm working on a PR.

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

3 participants