mares29
09/29/2020, 9:25 PMawait prisma.posts.findOne({
where: {oldest(updatedAt)} // ???
})
Thanks for any advice 😉mares29
09/29/2020, 10:13 PMfindFirst
is the way :)Ben Schwartz
09/29/2020, 10:13 PMfindFirst
. You could do
await prisma.posts.findFirst({ orderBy: { createdAt: 'asc' } })
Ben Schwartz
09/29/2020, 10:13 PM