MalteOriginal post
Flutter Developer
Hey, i used graphql in appwrite 1.4.9 with this graphql query (It worked back then):
query {
databasesListDocuments(
databaseId: "myId",
collectionId: "myId",
queries: ["equal('correct', [true])"]
) {
total,
documents {
_createdAt
}
}
}
In Appwrite 1.5.3 the "queries" part throws an "Invalid query" exception in json_decode of the utopia-php: Query.php (https://github.com/utopia-php/database/blob/main/src/Database/Query.php)
What do I need to change? I tried several different variants of the "queries" parameter
Summary
GraphQL queries in Appwrite 1.5 now use the new `or` and `and` operators. Update your query to include these operators.
Change your query from:
```
queries: ["equal('correct', [true])"]
```
to:
```
queries: ["equal('correct', true)"]
```