Skip to content

Commit

Permalink
Merge pull request #12054 from MontgomeryWatts/patch-2
Browse files Browse the repository at this point in the history
Update schematypes.md
  • Loading branch information
Uzlopak authored Jul 5, 2022
2 parents f947c20 + 9d17a0d commit cba16b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/schematypes.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,9 @@ const schema2 = new Schema({

<h5>Date</h5>

* `min`: Date
* `max`: Date
* `min`: Date, creates a [validator](./validation.html) that checks if the value is greater than or equal to the given minimum.
* `max`: Date, creates a [validator](./validation.html) that checks if the value is less than or equal to the given maximum.
* `expires`: Number or String, creates a TTL index with the value expressed in seconds.

<h5>ObjectId</h5>

Expand Down

0 comments on commit cba16b9

Please sign in to comment.