Skip to content

Commit 8458c41

Browse files
authored
MongoDB: Added v5 support (#3297)
1 parent 441a142 commit 8458c41

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

components/prism-mongodb.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
'$addFields', '$bucket', '$bucketAuto', '$collStats', '$count', '$currentOp', '$facet', '$geoNear',
1616
'$graphLookup', '$group', '$indexStats', '$limit', '$listLocalSessions', '$listSessions', '$lookup',
1717
'$match', '$merge', '$out', '$planCacheStats', '$project', '$redact', '$replaceRoot', '$replaceWith',
18-
'$sample', '$set', '$skip', '$sort', '$sortByCount', '$unionWith', '$unset', '$unwind',
18+
'$sample', '$set', '$skip', '$sort', '$sortByCount', '$unionWith', '$unset', '$unwind', '$setWindowFields',
1919

2020
// aggregation pipeline operators
2121
'$abs', '$accumulator', '$acos', '$acosh', '$add', '$addToSet', '$allElementsTrue', '$and',
@@ -33,7 +33,8 @@
3333
'$size', '$sin', '$slice', '$split', '$sqrt', '$stdDevPop', '$stdDevSamp', '$strcasecmp', '$strLenBytes',
3434
'$strLenCP', '$substr', '$substrBytes', '$substrCP', '$subtract', '$sum', '$switch', '$tan',
3535
'$toBool', '$toDate', '$toDecimal', '$toDouble', '$toInt', '$toLong', '$toObjectId', '$toString',
36-
'$toLower', '$toUpper', '$trim', '$trunc', '$type', '$week', '$year', '$zip',
36+
'$toLower', '$toUpper', '$trim', '$trunc', '$type', '$week', '$year', '$zip', '$count', '$dateAdd',
37+
'$dateDiff', '$dateSubtract', '$dateTrunc', '$getField', '$rand', '$sampleRate', '$setField', '$unsetField',
3738

3839
// aggregation pipeline query modifiers
3940
'$comment', '$explain', '$hint', '$max', '$maxTimeMS', '$min', '$orderby', '$query',

components/prism-mongodb.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)