Does anyone know how to extend lists without itera...
# mongodb
g
Does anyone know how to extend lists without iteratively insert each item individually?
1
p
did you try
Copy code
prisma.students.update({
  where: { name: 'joe' },
  data: {
    scores: {
      push: [90, 92, 85]
    }
  }
});
g
The expected behavior is that it inserts the triplet as a single item at the end of the list. And that is what happened. Thanks for the suggestion though!