mongo dot notation ambiguity

后端 未结 1 1278
予麋鹿
予麋鹿 2020-12-21 08:06

I love MongoDB, and a certain little ambiguity occurred to me and I was wondering if anyone had seen this before and possibly would know the answer :-).

in mongo, to

相关标签:
1条回答
  • 2020-12-21 08:56

    A key such as "address.state" isn't legal. From here:

    Field names cannot contain dots (i.e. .) or null characters, and they must not start with a dollar sign (i.e. $).

    0 讨论(0)
提交回复
热议问题