Mongodb – how to stop users from viewing and updating another user's data in node.js?
I am storing a parking detail with a merchant id in the mongoose schema since a parking belongs to a certain merchant user and it cannot be empty or null. Here is the model: const parkingSchema = new mongoose.Schema({ merchantId:…