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),
])