```const [updatedUser] = await prisma.charge.updat...
# orm-help
a
Copy code
const [updatedUser] = await prisma.charge.updateMany({
          where: { stripeId: chargeId },
          data: { refunded: true },
        });
whats wrong with this array destructuring? isn't is supposed to return an array? but, I am getting the following error:
Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method
r
Hey @Ashiqur Rahman 👋 It doesn't return the updated items but the count of item updated. You will get something like this:
Copy code
{ count: 5 }