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

9 messages · Page 1 of 1 (latest)

green granite
#

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.

#

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

sweet halo
sage marsh
green granite
green granite
#

Is it to generalize the doc reference?

sage marsh
green granite
#

Solved!