Skip to content

Commit

Permalink
Improve documentation for astFromValue (#2182)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtrocki authored and IvanGoncharov committed Sep 17, 2019
1 parent 1a82c35 commit 06ef5db
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/utilities/astFromValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 06ef5db

Please sign in to comment.