Hi guys. I'm using Appwrite Cloud, and I'm using version 21 of node-appwrite to benefit from transactions. The problem is I seem to be getting an error when I use Query.equal:
AppwriteException: Invalid query method: equal at _Client.call (file:///usr/local/server/src/function/node_modules/node-appwrite/dist/client.mjs:294:13) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async Module.default (file:///usr/local/server/src/function/src/main.js:85:24) at async execute (/usr/local/server/src/server.js:220:16) at async action (/usr/local/server/src/server.js:237:7) at async /usr/local/server/src/server.js:26:5
The relevant excerpt of the code in question that uses it is as follows:
else if(req.bodyJson.drawId){ //This means we tried to start a new conversation
//We first check if we've already created a conversation with a matching draw
//If we have already, we return that
log("Trying to start a convo");
const existingConvo = await database.listRows({
databaseId: "68c2503d0005d71c2f12",
tableId: "journal_conversations",
queries: [
Query.equal("userId", userId),
Query.equal("draw.$id", req.bodyJson.drawId),
Query.select(['*', 'draw.*', 'draw.card.*'])
]
});
Is this a compatibility issue with the cloud?
Recommended threads
- Rate limit
How do I solve "Signup Failed, Rate limit for the current endpoint has been exceeded. Please try again after some time"? I have Pro and around 2k requests per ...
- Type 'Theme' does not satisfy the constr...
Type 'Theme' does not satisfy the constraint 'Row'. Type 'Theme' is missing the following properties from type 'Row': $id, $sequence, $tableId, $databaseId, a...
- Dev Keys not working
looks like dev key are broken they simply don't work i suggest remove them until you have them working otherwise they confuse devs took me few minutes trying ...