You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Envelop is currently split into parts and requires the user to integrate them in order every time they want to use envelop and have a valid GraphQL execution chain.
In order to properly process a GraphQL request, you'll always have to parse, validate and execute/subscribe; with this in mind, I suggest a single, unified, perform function that does all of the above:
This approach, not only simplifies the usage of envelop, but additionally allows manipulation of the final result through an accompanying onPerform hook (including parsing and validation errors) to inject implementor specific requirements - like the extensions field for Apollo's FTV1 tracing.
The text was updated successfully, but these errors were encountered:
enisdenjo
changed the title
A single function that takes GraphQL parameters and does parsing, validation and execution/subscription
A single function that takes GraphQL parameters and does parsing, validation, context assembly and execution/subscription
Aug 19, 2022
Envelop is currently split into parts and requires the user to integrate them in order every time they want to use envelop and have a valid GraphQL execution chain.
In essence, the redundancy is:
In order to properly process a GraphQL request, you'll always have to parse, validate and execute/subscribe; with this in mind, I suggest a single, unified,
perform
function that does all of the above:This approach, not only simplifies the usage of envelop, but additionally allows manipulation of the final result through an accompanying
onPerform
hook (including parsing and validation errors) to inject implementor specific requirements - like theextensions
field for Apollo's FTV1 tracing.Supersedes #1491
Necessary for #1490
The text was updated successfully, but these errors were encountered: