Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
documented the nested queries (RT#94491)
  • Loading branch information
mickeyn committed Nov 22, 2014
1 parent 241ca8e commit edfc51d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/MetaCPAN/Client.pm
Expand Up @@ -479,6 +479,20 @@ key:
]
} );
If you want to do something even more complicated,
You can also nest your queries, e.g.:
my $gmail_daves_or_cpan_sams = $mcpan->author( {
either => [
{ all => [ { name => 'Dave *' },
{ email => '*gmail.com' } ]
},
{ all => [ { name => 'Sam *' },
{ email => '*cpan.org' } ]
},
],
} );
=head2 NOT
If you want to filter out some of the results of an either/all query
Expand Down

0 comments on commit edfc51d

Please sign in to comment.