Hi, suppose I hav docs like this: offer: { category_id: 1024, title: "foo bar blah" I have many categories and many offers. I want to aggregate offers by categories and store first five titles from each category: result: { catego...
Hi, suppose I hav docs like this: offer: { category_id: 1024, title: "foo bar blah" I have many categories and many offers. I want to aggregate offers by categories and store first five titles from each category: result: { category_id: 1024, titles: ["first title", "second title", "third", "fourth", "fifth"]