From 45f8c2f2258760c4b291993058a1d00c9b5ebc10 Mon Sep 17 00:00:00 2001 From: Himanshu Singh Date: Tue, 14 Feb 2023 10:57:39 +0100 Subject: [PATCH] feat(playground): adds new Time-Series options --- src/templates/playgroundCreateCollectionTemplate.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/templates/playgroundCreateCollectionTemplate.ts b/src/templates/playgroundCreateCollectionTemplate.ts index dc0b5d842..b6fa0db3e 100644 --- a/src/templates/playgroundCreateCollectionTemplate.ts +++ b/src/templates/playgroundCreateCollectionTemplate.ts @@ -29,7 +29,9 @@ db.createCollection(collection); timeseries: { // Added in MongoDB 5.0 timeField: , // required for time series collections metaField: , - granularity: + granularity: , + bucketMaxSpanSeconds: , // Added in MongoDB 6.3 + bucketRoundingSeconds: , // Added in MongoDB 6.3 }, expireAfterSeconds: , clusteredIndex: , // Added in MongoDB 5.3