Question. Agregations. MongDB

  1. I use mongodb. I created a model with 10 fields. Each field can have different values and value type
    So I created request like this

    I have to write each field which I need in group area

How I can create such aggregation via 'Question'?

  1. How to create a snippet for variable?
  2. How to create a 'Native query' to MODEL, not to database?