Skip to content

Commit c165907

Browse files
Citoleebyron
authored andcommitted
Document the contextValue argument (#1400)
* Document the contextValue argument * Update graphql.js A little bit more
1 parent 7a5a9ab commit c165907

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/graphql.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ import type { MaybePromise } from './jsutils/MaybePromise';
3636
* rootValue:
3737
* The value provided as the first argument to resolver functions on the top
3838
* level type (e.g. the query object type).
39+
* contextValue:
40+
* The context value is provided as an argument to resolver functions after
41+
* field arguments. It is used to pass shared information useful at any point
42+
* during executing this query, for example the currently logged in user and
43+
* connections to databases or other services.
3944
* variableValues:
4045
* A mapping of variable name to runtime value to use for all variables
4146
* defined in the requestString.

0 commit comments

Comments
 (0)