diff --git a/src/utilities/astFromValue.js b/src/utilities/astFromValue.js index 0b48e3ee12..e4972960a4 100644 --- a/src/utilities/astFromValue.js +++ b/src/utilities/astFromValue.js @@ -24,7 +24,11 @@ import { } from '../type/definition'; /** - * Produces a GraphQL Value AST given a JavaScript value. + * Produces a GraphQL Value AST given a JavaScript object. + * Function will match JavaScript/JSON values to GraphQL AST schema format + * by using suggested GraphQLInputType. For example: + * + * astFromValue("value", GraphQLString) * * A GraphQL type must be provided, which will be used to interpret different * JavaScript values.