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
"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
The fix was that I needed to write 'attribute' instead of 'column' in the query.