Skip to content

Filter nested list of dictionaries #1781

Discussion options

You must be logged in to vote

I have not tested it, but try this:

_mql.aggregate:
  on:
    _state: my_data
  pipeline:
     - $match:
         $expr:
            $gt:
              - $size:
                  $filter:
                     input:
                       $options
                     cond:
                       $and:
                          - $eq: 
                            - $$this.name
                            -  Option1
                          - $eq:
                             - $$this.value
                             - '100'
               - 0

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@kemeris2000
Comment options

@Gervwyk
Comment options

Answer selected by kemeris2000
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants