dynamic-query-builder
Advanced tools
Comparing version 2.0.4 to 2.0.5
{ | ||
"name": "dynamic-query-builder", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "build dynamic queries for ORMs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -13,7 +13,19 @@ # dynamic-query-builder | ||
The `buildMongooseQuery` function builds a Prisma query based on flat filter conditions. | ||
The `buildMongooseQuery` function builds a Mongoose query based on flat filter conditions. | ||
### TypeORM query builder | ||
#### `buildTypeORMQuery` Function | ||
The `buildTypeORMQuery` function builds a TypeORM query based on flat filter conditions. | ||
### TypeORM query builder | ||
#### `buildSequelizeQuery` Function | ||
The `buildSequelizeQuery` function builds a Sequelize query based on flat filter conditions. | ||
##### Usage | ||
This function takes an object of flat filter conditions and converts it into a Prisma-compatible query object. The filter conditions are expected to be in the format of `field_condition: value`, where `field` is the name of the field to filter on and `condition` is the type of filter to apply. | ||
This functions take an object of flat filter conditions and converts it into a ORM query object. The filter conditions are expected to be in the format of `field_condition: value`, where `field` is the name of the field to filter on and `condition` is the type of filter to apply. | ||
@@ -20,0 +32,0 @@ ##### Supported Conditions |
11400
74