I have client table whcih contains code, was initially interger field, but since it doesn't support full searching. I need to change to string and store it.
But when I try to get the last order number. it doesn't return the correct biggest number. any possible solution or workaround for this
const promise: any = await db.clients.list([
Query.orderDesc("code"),
Query.limit(1),
])
Recommended threads
- 1:1 relationship doesn’t sync after re-a...
Hi, I’m trying to use a two-way one-to-one relationship. It works fine when I create a record with the relationship set, and it also works when I unset it. But ...
- Failed to create function
Hey everyone 👋 I'm having an issue creating Functions on Appwrite Cloud and I'm not sure if it's a platform bug or something wrong in my project. When I try t...
- Upsert with setting permissions
Hi there, I am using self-hosted appwrite v1.7.4 and trying to use the bulk update stuff that was released with 1.7.x. Unfortunally I found that there is an ser...