<init>(PartTree.java:87) at org.springframework.data.mongodb.repository.support.MongoRepositoryFactoryorg.springframework.data.repository.core.support.Repo
我必须在MongoDB中执行从多个集合中查找,即我的查询如下所示- _id:1003, // This belongs to user collection 'member.lastName':'xyz', // This belongs to member collection现在,我希望支持使用多
例如,当我尝试按客户运行订单查询时,我找不到一种简单的方法来将订单连接到客户id上的客户,因为在orders对象中,客户id将_user$附加到用户ID的开头,而我不知道如何在聚合管道中截断它。例如,在order对象中,customer被定义为_p_customer:"_User$8qXjk40eOd“,但在user表中,_id仅为8qXjk40eOd,因此图表中的默认查找函数无法匹配这两个参数This is how the data is