LibreCat / Catmandu-Store-MongoDB

A searchable store backed by MongoDB
https://metacpan.org/pod/Catmandu::Store::MongoDB
4 stars 2 forks source link

Add support of projections #8

Closed jorol closed 7 years ago

jorol commented 8 years ago

Add support of projections, so you can limit fields to return from a query.

Optional parameter "fields" added to search() and searcher().

jorol commented 8 years ago

Hi nics,

at the moment this parameter is only available within Perl programs (see ./t/01-store.t). How could I add it to the catmandu CLI?

catmandu export MongoDB --database_name test_database --query '{"char":"ABC"}' --fields '{"num":1}'