Skip to content
Back

Invalid query: Attribute not found in schema even though query, and attribute are correct/exist.

  • 0
  • Self Hosted
  • Databases
  • REST API
Aku
2 Nov, 2025, 20:29

Hiya. I'm trying to use the REST API with documents and doing a simple select with query:

https://<mydomain>/v1/databases/<database>/collections/<collection>/documents?queries[]=%7B%22method%22%3A%22equal%22%2C%22column%22%3A%22uuid%22%2C%22values%22%3A%5B%22abcdefg%22%5D%7D

({"method":"equal","column":"uuid","values":["abcdefg"]})

and getting

TypeScript
    "message": "Invalid query: Attribute not found in schema: ",
    "code": 400,
    "type": "general_query_invalid",
    "version": "1.6.0",
    "file": "/usr/src/code/app/controllers/api/databases.php",
    "line": 3099,
    "trace": 

even though the attribute definitely does exist. Could this be an installation error on my part, perhaps? Thanks for the help

TL;DR
Problem: Developer is receiving an "Invalid query: Attribute not found in schema" error when trying to select with a query in a REST API call, even though the query and attribute are correct. Solution: Ensure that the attribute being queried exists in the schema. It might be helpful to double-check the installation process to ensure there were no errors.
Aku
2 Nov, 2025, 20:33

Or maybe I'm misunderstanding how to use the query argument. First time using it.

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