From 9d17a0dbfd602c4f28e6d4ed7b6d62f9aba49ab0 Mon Sep 17 00:00:00 2001 From: Montgomery Watts Date: Mon, 4 Jul 2022 20:01:36 -0700 Subject: [PATCH] Update schematypes.md Expand description of `min` and `max` and include `expires` option for Date schema type. --- docs/schematypes.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/schematypes.md b/docs/schematypes.md index dc64c571340..74ca0700efa 100644 --- a/docs/schematypes.md +++ b/docs/schematypes.md @@ -279,8 +279,9 @@ const schema2 = new Schema({
Date
-* `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.
ObjectId