Skip to content

Commit

Permalink
Update migrating_to_6.md
Browse files Browse the repository at this point in the history
correct the proof/example statement of isObjectIdOrHexString
  • Loading branch information
LokeshKanumoori authored Jul 19, 2022
1 parent bc302f4 commit 1344214
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 1344214

Please sign in to comment.