我想在springboot框架下用jpa对mongodb进行aggregate操作,但是没找到类似于@query这样的注解,请问哪位大佬又解决方案吗
查询语句类似于
db.web_mem_favorites.aggregate(
{"$project":{"favorite_shards":"$favorite_shards"}},
{"$unwind":"$favorite_shards"},
{"$match":{"favorite_shards.sid": NumberLong(577)}}
)
或者不用jpa也可,只要能在springboot下获取到对应的数据的list
多谢