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
Copy file name to clipboardExpand all lines: docs/context/introduction.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ Wertik-js provides these built-in context properties
34
34
- res: Res object to send custom response, Varies with GraphQL and RestAPI
35
35
36
36
#### Create Context Handler
37
-
If you want to pass a function that executes while context creation, You can pass a function in your configuration, This function supports async await. `configuration.context.createContext`, When this function will be called, two paramters will be passed,
37
+
If you want to pass a function that executes while context creation, You can pass a function in your configuration, This function supports async await. `configuration.context.requestContext`, When this function will be called, two paramters will be passed,
38
38
39
39
- mode: This will be restApi or graphql, When this function runs in graphql then value will be graphql and for restApi it becomes restApi.
40
40
- context: For GraphQL this value is context object and for restApi it is req object so that you can access current context
0 commit comments