path | title |
---|---|
/learnings/mongodb |
Learnings: Mongodb |
db.users.update({"_id": "0000000000001"}, {$set: {role_level: 10}})
Will just update the role_level
field in the found record NOT anything else)
Indexing data:
- 2dsphere index: $geoNear via GeoJson or coordinate pair
- 2d index: coordinate pair