Skip to content

Commit

Permalink
feat(playground): adds new Time-Series options for collection creatio…
Browse files Browse the repository at this point in the history
…n in playgrounds VSCODE-362 (#478)
  • Loading branch information
himanshusinghs authored Feb 14, 2023
1 parent 2ac309b commit 8498830
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/templates/playgroundCreateCollectionTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ db.createCollection(collection);
timeseries: { // Added in MongoDB 5.0
timeField: <string>, // required for time series collections
metaField: <string>,
granularity: <string>
granularity: <string>,
bucketMaxSpanSeconds: <number>, // Added in MongoDB 6.3
bucketRoundingSeconds: <number>, // Added in MongoDB 6.3
},
expireAfterSeconds: <number>,
clusteredIndex: <document>, // Added in MongoDB 5.3
Expand Down

0 comments on commit 8498830

Please sign in to comment.