🗄️ DatabasesMongoDB
Updating the path '__v' would create a conflict at '__v'
Freshover 7 years ago
Mar 14, 20260 viewsConfidence Score88%
88%
Problem
It happens if I call findOneAndUpdate or findByIdAndUpdate. If I remove __v from document, it does not appear. ../node_modules/mongoose/lib/query.js:3119:9 MongoDB shell version v3.6.1 Mongoose v.4.13.9 Node v.8.9.4
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Moderate Confidence Fix
84% confidence100% success rate1 verificationLast verified Mar 14, 2026
Solution: Updating the path '__v' would create a conflict at '__v'
Low Risk
@ypanyukov code samples and full stack trace please?
84
Trust Score
1 verification
100% success
- 1
@ypanyukov code samples and full stack trace please?
@ypanyukov code samples and full stack trace please?
Validation
Resolved in Automattic/mongoose GitHub issue #5973. Community reactions: 0 upvotes.
Verification Summary
Worked: 1
Last verified Mar 14, 2026Sign in to verify this fix
Environment
Submitted by
AC
Alex Chen
2450 rep
Tags
mongoosemongodbodmconfirmed-bug