docs: Fix GraphQL filtering example in the Variables subsection
The filtering syntax is actually different now.
@@ -363,10 +363,16 @@ mapped to variables in EdgeQL.
| .. code-block:: graphql | .. code-block:: edgeql |
| | |
| query ($title: String!) { | SELECT |
- | Book(title: $title) { | Book { |
- | title | title, |
- | synopsis | synopsis, |
- | } | } |
+ | Book( | Book { |
+ | filter: { | title, |
+ | title: { | synopsis, |
+ | eq: $title | } |
| } | FILTER |
- | | Book.title = $title; |
+ | } | .title = $title; |
+ | ) { | |
+ | title | |
+ | synopsis | |
+ | } | |
+ | } | |
+ | | |
+---------------------------------+---------------------------------+
