[this is a screenshot,MongoServerError: E11000 duplicate key error collection: allfruitsCollection.allfruitsorder index: id dup key: { _id: "62772f5266f2a42a9abaa9d5" }][1]
You can't have 2 objects with the same ObjetcId in MongoDB, this is a unique field that's autogenerated by MongoDB for every object in your database.
You could add a field like "ItemId" and then you could have the same id on different objects in the "ItemId" field