Skip to content

Commit 61fe317

Browse files
committed
Update docs
1 parent 5e7cf2a commit 61fe317

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/reference.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,10 +718,25 @@ Parses string containing GraphQL query or [type definition](type-system/type-lan
718718
* in the source that they correspond to. This configuration flag
719719
* disables that behavior for performance or testing.)
720720
*
721+
* experimentalFragmentVariables: boolean,
722+
* (If enabled, the parser will understand and parse variable definitions
723+
* contained in a fragment definition. They'll be represented in the
724+
* `variableDefinitions` field of the FragmentDefinitionNode.
725+
*
726+
* The syntax is identical to normal, query-defined variables. For example:
727+
*
728+
* fragment A($var: Boolean = false) on T {
729+
* ...
730+
* }
731+
*
732+
* Note: this feature is experimental and may change or be removed in the
733+
* future.)
734+
*
721735
* @api
722736
* @param Source|string $source
723737
* @param array $options
724738
* @return DocumentNode
739+
* @throws SyntaxError
725740
*/
726741
static function parse($source, array $options = [])
727742
```

0 commit comments

Comments
 (0)