hi all, question about prisma client. I have a typ...
# orm-help
c
hi all, question about prisma client. I have a type Activity that has a datetime field. Is there a way to get the latest result, or null if there aren't any Activity stored at all? I can obviously filter on activities by ordering it by date, but I only want one result, and I'd prefer it not to be in an array.
h
I don't think there is any other way as we return array for all other filter except for the unique field. This is an anti-pattern for the API. So please reference the first element 🙂