Consider the below code ```const getUser = await p...
# orm-help
h
Consider the below code
Copy code
const getUser = await prisma.user.findUnique({
  where: {
    id: 19,
  },
  select: {
    posts: {
      select: {
        title: true,
      },
    },
  },
})
output
Copy code
{
  posts: { title: 'My first post' }
}
Is there a way to get it like the one shown below ?
Copy code
{
  posts: "My post title"
}
1
a
Hey Hussam 👋 , You would need to do this transformation in your JS code, it's not possible with a Prisma query.
👍 1