1

Is there a way to define the aggregation pipeline "raw" string (with placeholders) in Spring Data the same way you can do it with @Query annotation on an method inside of a MongoRepository<X, Y> interface?

If yes, can you please provide a simple example?

user1902183
  • 3,203
  • 9
  • 31
  • 48
  • As per the official documents of [4.10 Aggregation Framework Support] [https://docs.spring.io/spring-data/data-mongodb/docs/1.4.2.RELEASE/reference/htmlsingle/#mongo.aggregation] I don't think it is possible. – krishna Prasad Apr 14 '19 at 17:32
  • this is something we're working on. See [DATAMONGO-2153](https://jira.spring.io/browse/DATAMONGO-2153) for updates. – Christoph Strobl Apr 16 '19 at 09:24

0 Answers0