大橙子网站建设,新征程启航
为企业提供网站建设、域名注册、服务器等服务
NamesArrayLength
, update it with names array length and then use in queries:db.accommodations.find({"NamesArrayLength": {$gt: 1} });
It will be better solution, and will work much faster (you can create index on it).