mongodb嵌套模糊查询

db.test2.find({“user_basic_info.name”:/134060994103/});
{ “_id” : ObjectId(“5e211ab52ea735c78cf58f89”), “user_basic_info” : { “name” : “张三1340609941030”, “age” : “1340609941030”, “address” : { “city” : “上海”, “province” : “上海” } }, “work_exprs” : [ { “company” : “公司1340609941030”, “date_range” : “2001-2003” }, { “company” : “公司13406099410301340609941030”, “date_range” : “2003-2004” } ], “educations” : [ { “school” : “学校A”, “date_range” : “1995-1998”, “company” : “学校1340609941030” }, { “school” : “学校B”, “date_range” : “1995-1998”, “company” : “学校13406099410301340609941030” } ] }

发布了605 篇原创文章 · 获赞 41 · 访问量 80万+

猜你喜欢

转载自blog.csdn.net/aoerqileng/article/details/104045256