New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dynamic-query-builder

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynamic-query-builder - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc