hi, anyone knows whether we can continue chaining ...
# orm-help
t
hi, anyone knows whether we can continue chaining prisma after data is fetch? For example
Copy code
const post = await prisma.post.findFirst({...});

// continue playing with post
post.update({...})
1
n
Hey Tri 👋 the objects you’re getting back from Prisma Client queries are plain objects, meaning you can’t call any methods on them. So, to update an object you’ll need to send another Prisma Client query 🙂
t
yeah make sense. I'm trying to minimise my call to the db but just have to deal with that then