Wondering if there's a way to update multiple nest...
# orm-help
t
Wondering if there's a way to update multiple nested records in the one statement, with each nested record having it's own set of data. Like by providing an array of posts in this example https://www.prisma.io/docs/concepts/components/prisma-client/relation-queries#update-a-specific-related-record. Eg something like:
Copy code
const update = await prisma.user.update({
    where: {
      id: 6,
    },
    data: {
      posts: {
        update: [
          {
            where: {
              id: 9,
            },
            data: {
              title: 'Posts 9 title',
            },
          },
          {
            where: {
              id: 10,
            },
            data: {
              title: 'Post 10 title is different',
            },
          },
        ]
      },
    },
  })