ObjectId id=new ObjectId("123"); c=c.where("relation_type.$id").is(id); 转载于:https://www.cnblogs.com/bornteam/p/4375547.html