Great, that what I was looking for. I was need to know the reason for
that. It would be nice to have full description of those types on a
Mongo web side. This will allow developers up-front to understand and
plan for them accordingly. You mentioned two so far, is there are any
others?
Back to the problem. The problem is the current default behavior. The
_id is added to my doc automatically, it is not what I put it into the
doc. Moreover it's added as a special type, which I neither instruct
to add, provided or define. As I said, having auto-id generation is a
great feature, but it does create document interoperability problem.
So in this regard, choice of string (universal) type is more
appealing. I'd like to here opinion on that. In my mind having option
to be JSON strict may be a good way to go, instead of special handling
of special types. For instance in insert/update api, I can provide a
flag to be JSON strict and if I store non-supported JSON formats, e.g.
datetime, it should raise an exception, because I ask for being JSON
strict. For all others, including internally generated, the default
type should be string in this case. Is it reasonable?