2 ms·
Most serializers will omit undefined (I don't believe it's allowed as a JSON value. That said, I think null should be sufficient. Though, MongoDB already defi
by tracker1 12y ago
Most serializers will omit undefined (I don't believe it's allowed as a JSON value. That said, I think null should be sufficient. Though, MongoDB already defines update syntax pretty well, and would just assume follow that syntax.
http://docs.mongodb.org/manual/tutorial/modify-documents/ http://docs.mongodb.org/manual/tutorial/modify-documents/
It's not perfect, but it is pretty widely used, and well thought out enough for this purpose.