[Mongo] Filter by groups and categories (entities type)

| Q                   | A
| ------------------- | ---
| Bug fix?            | yes
| New feature?        | no
| BC breaks?          | no
| Tests pass?         | yes
| Scenarios pass?     | partially
| Checkstyle issues?  | no
| Changelog updated?  | no
| Fixed tickets       | PIM-2347, PIM-2348
| Doc PR              |