Skip to content

Commit

Permalink
Update expression-language.md
Browse files Browse the repository at this point in the history
A small correction
  • Loading branch information
murtukov authored Jul 19, 2019
1 parent 3b1a435 commit 70dca1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/definitions/expression-language.md
Original file line number Diff line number Diff line change
Expand Up @@ -428,12 +428,12 @@ Backslashes in expressions must be escaped by 2 or 4 backslasehs, depending on w
When using **single quotes** as _outer_ quotes, you must use **double backslashes**. e.g.:
```yaml
...
access: '@=resolver("App\\GraphQL\\Resolver\\ResolverName::methodName")'
resolve: '@=resolver("App\\GraphQL\\Resolver\\ResolverName::methodName")'
...
```
When using **double quotes** as _outer_ quotes, you must use **4 backslashes**, e.g.:
```yaml
...
access: "@=resolver('App\\\\GraphQL\\\\Resolver\\\\ResolverName::methodName')"
resolve: "@=resolver('App\\\\GraphQL\\\\Resolver\\\\ResolverName::methodName')"
...
```

0 comments on commit 70dca1b

Please sign in to comment.