I am trying to change the type of a field from within the mongo shell.

I am doing this…

db.meta.update(
  {'fields.properties.default': { $type : 1 }}, 
  {'fields.properties.default': { $type : 2 }}
)

But it’s not working!

13 Answers
13

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *