DebjitOriginal post
Rank 1: Thread
Need help, Can anyone help me by saying what is the problem with this query methond?
return databases.listDocuments(awDatabase, awTable, [
Query.select(["$id","name",]),
Query.equal("$id", uid),
]);
I just need $id and name. Please share what is the problem here.
Getting 400 error
{message: "Query method not valid: select", code: 400, type: "general_argument_invalid",…}
code
:
400
message
:
"Query method not valid: select"
type
:
"general_argument_invalid"
version
:
"0.10.37"
Summary
The problem is that the `Query.select` method is not valid in the current version of the software being used. The version being used is 1.1.2. This method is only available in version 1.3.x or higher. As a result, the query is not working and a 400 error is being returned. To resolve this, you can either update to a version that supports the `Query.select` method or find an alternative way to select only the desired fields.