mirror of
https://github.com/retailcrm/graphql-php.git
synced 2025-02-16 20:33:14 +03:00
Update docs
This commit is contained in:
parent
5e7cf2aacb
commit
61fe317faf
@ -718,10 +718,25 @@ Parses string containing GraphQL query or [type definition](type-system/type-lan
|
|||||||
* in the source that they correspond to. This configuration flag
|
* in the source that they correspond to. This configuration flag
|
||||||
* disables that behavior for performance or testing.)
|
* disables that behavior for performance or testing.)
|
||||||
*
|
*
|
||||||
|
* experimentalFragmentVariables: boolean,
|
||||||
|
* (If enabled, the parser will understand and parse variable definitions
|
||||||
|
* contained in a fragment definition. They'll be represented in the
|
||||||
|
* `variableDefinitions` field of the FragmentDefinitionNode.
|
||||||
|
*
|
||||||
|
* The syntax is identical to normal, query-defined variables. For example:
|
||||||
|
*
|
||||||
|
* fragment A($var: Boolean = false) on T {
|
||||||
|
* ...
|
||||||
|
* }
|
||||||
|
*
|
||||||
|
* Note: this feature is experimental and may change or be removed in the
|
||||||
|
* future.)
|
||||||
|
*
|
||||||
* @api
|
* @api
|
||||||
* @param Source|string $source
|
* @param Source|string $source
|
||||||
* @param array $options
|
* @param array $options
|
||||||
* @return DocumentNode
|
* @return DocumentNode
|
||||||
|
* @throws SyntaxError
|
||||||
*/
|
*/
|
||||||
static function parse($source, array $options = [])
|
static function parse($source, array $options = [])
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user