Skip to content
Back

Graph Ql Filters Syntax error

  • 0
  • GraphQL
Sait
5 Jan, 2026, 08:35

query { tablesDBListRows( databaseId: "690b62ea0019a21bfd2c", tableId: "book", queries: ["equal("book_title", "gaaa")"] ) { total rows { _id data book_title } } }

127.0.0.1 - - [14/Nov/2025 12:22:15] "POST /graphql HTTP/1.1" 200 - Book Response: {'errors': [{'message': 'Cannot query field "book_title" on type "Row".', 'extensions': {'category': 'graphql'}, 'locations': [{'line': 12, 'column': 15}]}]} No book found with the given title. book_query = f""" query {{ tablesDBListRows( databaseId: "{DATABASE_ID}", tableId: "{BOOK_COLLECTION_ID}", queries: ["equal(book_title, gaaa)"] ) {{ total rows {{ _id data book_title }} }} }} """

This is the query I am currently using but I get a syntax error can anyone provide a solution for this.

TL;DR
Issue with GraphQL query syntax error due to incorrect format while filtering by "book_title". Solution: Update the query to use proper syntax for filtering, removing the inner double quotes around "book_title". Replace: ```queries: ["equal(\"book_title\", \"gaaa\")"]``` With: ```queries: ["equal(book_title, \"gaaa\")"]``` Adjust the query as shown above to resolve the syntax error.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more