File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -718,10 +718,25 @@ Parses string containing GraphQL query or [type definition](type-system/type-lan
718
718
* in the source that they correspond to. This configuration flag
719
719
* disables that behavior for performance or testing.)
720
720
*
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
+ *
721
735
* @api
722
736
* @param Source|string $source
723
737
* @param array $options
724
738
* @return DocumentNode
739
+ * @throws SyntaxError
725
740
*/
726
741
static function parse($source, array $options = [])
727
742
```
You can’t perform that action at this time.
0 commit comments