The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

recs-frommongo

recs-frommongo --help-all

 recs-frommongo --host user:pass@URI --name DB_NAME --collection COLLECTION --query QUERY
    Generate records from a MongoDB query.
 
 Arguments:
    --host <HOST_URI>               URI for your mongo instance, may include
                                    user:pass@URI
    --user <USER>                   User to authenticate as.
    --password <PASSWORD>           Password for --user
    --name <DB_NAME>                Name of database to connect to
    --collection <COLLECTION_NAME>  Name of collection to query against
    --query <QUERY>                 JSON query string to run against the --
                                    collection
    --filename-key|fk <keyspec>     Add a key with the source filename (if no
                                    filename is applicable will put NONE)
 
   Help Options:
       --help  This help screen
 
 Examples:
   Make a query against mongo hq
     recs-frommongo --host mongodb://user:pass@dharma.mongohq.com:10069 --name my_app --collection my_collection --query '{doc_key: {$not: {$size: 0}}}'

SEE ALSO