I have modified a schema (ie, users
) by deleting a key (ie, ips
). Thus I want to delete this key in all the documents in the database.
For example, in mongo console
or Robo 3T
, db.getCollection('users').find({})
returns all the users. Some of them contain the key ips
. Does anyone know how to remove ips
in the console or Robo 3T?