Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

partial filter expression mongodb compass

db.collection.createIndex(
   { a: 1 },
   { partialFilterExpression: { b: { $gt: 5 } } }
)
Source by docs.huihoo.com #
 
PREVIOUS NEXT
Tagged: #partial #filter #expression #mongodb #compass
ADD COMMENT
Topic
Name
2+3 =