Skip to content

Commit

Permalink
Merge pull request #12123 from LokeshKanumoori/patch-1
Browse files Browse the repository at this point in the history
Update migrating_to_6.md
  • Loading branch information
vkarpov15 authored Jul 19, 2022
2 parents 086bd9f + 1344214 commit b70a0dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/migrating_to_6.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ mongoose.isValidObjectId(new User({ name: 'test' })); // true
// character hex strings.
mongoose.isObjectIdOrHexString(new mongoose.Types.ObjectId()); // true
mongoose.isObjectIdOrHexString('62261a65d66c6be0a63c051f'); // true
mongoose.isValidObjectId('0123456789ab'); // false
mongoose.isValidObjectId(6); // false
mongoose.isObjectIdOrHexString('0123456789ab'); // false
mongoose.isObjectIdOrHexString(6); // false
```

<h3 id="schema-defined-document-key-order"><a href="#schema-defined-document-key-order">Schema Defined Document Key Order</a></h3>
Expand Down

0 comments on commit b70a0dc

Please sign in to comment.