MongoDb indexes: does $type: string work as well as $exists?

前端 未结 0 1363
耶瑟儿~
耶瑟儿~ 2021-02-15 22:13

So I was creating a unique index on certain fields and one of the field (let\'s name it fieldA) must be not null for the index to be working. So the index looks like this:

<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题