Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
mongodb project all fields
Luiggi Mendoza
Programming language:
Whatever
2021-08-26 17:08:47
0
Q:
mongodb project all fields
popo
Code:
Whatever
2021-09-02 22:24:24
db.collection.aggregate([ { "$addFields": { "custom_field": "$obj.obj_field1" } } ])
0
Tags
project
field
mongodb
Related
mongodb find field based on variable
mongodb findmany
get all data in collection mongodb
mongodb match multiple fields
mongodb delete all documents
mongodb select fields
New to Communities?
Join the community