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
refactor: subscribe need not rebuild the ExecutionContext
= introduces `createSourceEventStreamImpl` and `executeImpl` functions that operate on the built `ExecutionContext` rather the `ExecutionArgs`.
= `subscribe` now builds the `ExecutionContext` itself, calls the `createSourceEventStreamImpl` function on the original context and calls `executeImpl` on the per event context created by `buildEventExecutionContext`.
Motivation:
1. remove unnecessary `buildExecutionContext` call
2. paves the way for enhancing the `buildPerEventExecutionContext` to add a new `perEventContextFactory` argument to augment the context argument passed to resolvers as need per event.
depends on graphql#3638
0 commit comments