mongodb的join($lookup)后根据从表的字段过滤

     百度的都是根据主表的字段过滤,下面的是我亲测有效的  但是注意 match一定要写到lookup后面 好像是因为pipeline模式 具体什么意思我也不知道 参考linux的管道模式 附上Mongotemplate的代码 LookupOperation lookupAgg = Aggregation.lookup("charge_data","charge_id","_i
相关文章
相关标签/搜索