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
consolidate Request and ExecutionParams types (#3180)
* consolidate Request and ExecutionParams
- also affixes rootValue to Request
- when delegating with delegateToSchema, rootValue can be set multiple ways:
* when using a custom executor, the custom executor can utilize a
rootValue in whichever custom way it specifies.
* when using the default executor (execute/subscribe from graphql-js):
-- rootValue can be passed to delegateToSchema via a named option
-- rootValue can be included within a subschemaConfig
-- otherwise, rootValue is inferred from the originating schema
- when using wrapSchema/stitchSchemas, a subschemaConfig can specify the
createProxyingResolver function which can pass whatever rootValue it
wants to delegateToSchema as above.
* add changeset
* test
refactor: ExecutionParams type replaced by Request type
13
+
14
+
rootValue property is now a part of the Request type.
15
+
16
+
When delegating with delegateToSchema, rootValue can be set multiple ways:
17
+
18
+
- when using a custom executor, the custom executor can utilize a rootValue in whichever custom way it specifies.
19
+
- when using the default executor (execute/subscribe from graphql-js):
20
+
-- rootValue can be passed to delegateToSchema via a named option
21
+
-- rootValue can be included within a subschemaConfig
22
+
-- otherwise, rootValue is inferred from the originating schema
23
+
24
+
When using wrapSchema/stitchSchemas, a subschemaConfig can specify the createProxyingResolver function which can pass whatever rootValue it wants to delegateToSchema as above.
0 commit comments