0.2.1 • Published 1 year ago

build-query v0.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Database Query builder

Why does this repository exist? As developers use databases and build more complex queries as their applications grow, this code repository simplifies the querying process. All you have to do is pass the data you need to build, and the repository will return the data. The best part of this query builder library is that you can customize the query after it has been built to your specific needs.

How to use the query builder

  • Step 1: Install the query builder library

    npm i build-query   
  • Step 2: Create instance of the query builder library

     const buildQuery = new BuildQuery("MONGO") //Here mongo is passed to queryBuilder because query builder will use the mongo database.
    
     const filter = []
     filter.push({{ key: "marks", lowerValue: 66, upperValue: 99, dataTypes: "NUMBER" }})
     const queryBuilderOutput =  buildQuery.find(filter)
    
     // Customize the query if necessary otherwise pass it to mongo model 
0.2.1

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago