Hi!
I am am using mongoid ODM to create and update my data. If I create a document with one field not persisted, this field will be considered undefined ($exists: false). However, If I update this field with nil
(null value for rails), it won’t be always updated to null
in mongoDB, but stays undefined. I wonder why it behaves like that, and can I update the field to null
from mongoid?
Thanks a lot.