Hi, I’m running into an issue when trying to increment a numeric field using the Node.js SDK.
My environment:
Appwrite: self-hosted, version 1.7.4
node-appwrite: version 17.2.0
Code snippet:
ctx.databases.incrementDocumentAttribute(
'MAIN_DB',
'CONVERSATIONS',
conversationId,
'messagesCount',
1
);
Error message:
AppwriteException: Route not found. Please ensure the endpoint is configured correctly and that the API route is valid for this SDK version. Refer to the API docs for more details.
at _Client.call (...)
From the docs and changelog, I thought incrementDocumentAttribute was already supported in recent SDK versions, but it seems this route might not exist in the 1.7.4 API.
Thanks in advance!
TL;DR
Issue: Trying to increment a numeric field using the Node.js SDK, but encountering a "Route not found" error with Appwrite version 1.7.4 and node-appwrite version 17.2.0.
Solution: The incrementDocumentAttribute route may not exist in the 1.7.4 API. Check the API docs and SDK version compatibility for more information.