I'm trying to expand a MongoDB row with a new column/field with a new column named key_reference
, which doesn't seem to work. This is my Query in Robo 3T (similar to MySQL Workbench for MySQL or PgAdmin for Postgres)
doc1=db.getCollection('store.files').find({ _id : ObjectId("5ad5a07ccbce1d0873264ee6")});
doc1({$addFileds:{'key_reference':'1234'}});
What do I miss?