How to use findMany() with distinct column values?
Hi Everyone 
I’m using the
I want to modify it to exclude any records with duplicate
If more than one record exists for a specific
Does something like
I would highly appreciate any assistance.
Thanks a lot
I’m using the
findMany() query in my project to retrieve the latest records from an SQLite (libsql) database:I want to modify it to exclude any records with duplicate
ownerId column values.If more than one record exists for a specific
ownderId, I would like to get one (the latest) and exclude all others.Does something like
distinctOn already exist in Drizzle?I would highly appreciate any assistance.
Thanks a lot