From 7cf0464a809d606f63dc991968de5254a207ec3b Mon Sep 17 00:00:00 2001 From: Jonas Helfer Date: Thu, 5 May 2016 10:54:27 -0700 Subject: [PATCH] update graphql function signature to 0.5.0 People kept running into problems with this, because documentation wasn't updated. --- site/docs/APIReference-GraphQL.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site/docs/APIReference-GraphQL.md b/site/docs/APIReference-GraphQL.md index 3e68cd4a0b..57906758e1 100644 --- a/site/docs/APIReference-GraphQL.md +++ b/site/docs/APIReference-GraphQL.md @@ -146,6 +146,7 @@ graphql( schema: GraphQLSchema, requestString: string, rootValue?: ?any, + contextValue?: ?any, variableValues?: ?{[key: string]: any}, operationName?: ?string ): Promise @@ -153,7 +154,8 @@ graphql( The `graphql` function lexes, parses, validates and executes a GraphQL request. It requires a `schema` and a `requestString`. Optional arguments include a -`rootValue`, which will get passed as the root value to the executor, +`rootValue`, which will get passed as the root value to the executor, a `contextValue`, +which will get passed to all resolve functions, `variableValues`, which will get passed to the executor to provide values for any variables in `requestString`, and `operationName`, which allows the caller to specify which operation in `requestString` will be run, in cases where