mongo to knex
Applies mongo standard query to knex query builder.
Available operators
Checkout the available operators in the tests.
Installation
Install via npm:
$ npm install mongo-to-knex
Usage
var mongoToKnex = ; // knex main objectvar knex = /* knex config */ ; // knex query builder objectvar knexQuery = ; // your query on mongo standardvar mongoQuery = age: $lt: 10 ; // applies mongo query to knex builder; // continue using the knex query normallyreturn knexQuery ;
Contributing
It is required to use editorconfig and please write and run specs before pushing any changes:
npm test
License
Copyright (c) 2015 Max Claus Nunes. This software is licensed under the MIT License.