Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Fix GraphQL errors with __typename#151

Merged
mattjohnsonpint merged 7 commits intomainfrom
mjp/fix-graphql-error
Apr 25, 2024
Merged

Fix GraphQL errors with __typename#151
mattjohnsonpint merged 7 commits intomainfrom
mjp/fix-graphql-error

Conversation

@mattjohnsonpint
Copy link
Contributor

Fixes HYP-1066

Also further improved error handling, and added support for a HYPERMODE_TRACE environment variable to emit super detailed trace info to the GraphQL response. (That will be only used for detailed debugging purposes.)

@mattjohnsonpint mattjohnsonpint requested a review from a team April 25, 2024 22:57
@linear
Copy link

linear bot commented Apr 25, 2024

HYP-1066 Runtime doesn't handle `__typename` in inbound GraphQL request

GraphQL allows you to request __typename, a meta field, at any point in a query to get the name of the object type at that point.

Runtime gives:

{
    "errors": [
        {
            "message": "Internal Error"
        }
    ],
    "data": null
}

jairad26
jairad26 previously approved these changes Apr 25, 2024
@mattjohnsonpint mattjohnsonpint merged commit c789e4f into main Apr 25, 2024
@mattjohnsonpint mattjohnsonpint deleted the mjp/fix-graphql-error branch April 25, 2024 23:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants