Skip to content

aptivator/mongo-query-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mongo-query-compiler

Introduction

The utility transpiles mongodb-like query objects into a JavaScript filtering functions. The latter may then be used with any array's .filter() method to isolate the needed data subset. The software was written to provide a more natural and declarative way to specify search criteria. Given MongoDB's popularity, its query grammar was used as the basis for the syntax interpreted by this transpiler. mongo-query-compiler is meant to be used in development situations that require relatively complex filtering operations. For rudimentary subsetting, lodash's _.filter method is recommended.

Installation

npm install --save mongo-query-compiler

Documentation

For complete documentation and examples, see mongo-query-compiler-docs project.

About

Transpiler that converts mongodb-like object queries into JavaScript filtering functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published