DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
mongodb replace root
db.collection.aggregate([ { $replaceRoot: { newRoot: "$name" } }])
Source by docs.mongodb.com #
PREVIOUS
NEXT
Tagged:
#mongodb
#replace
#root
ADD COMMENT
Topic
COMMENT
Name
1+5 =
Submit