New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@comodinx/query-parser

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@comodinx/query-parser

@comodinx/query-parser is a module for parser query parameters on ORM object (sequelize).

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

Query parser

@comodinx/query-parser is a module for parser query parameters on ORM object (sequelize).

Index

  • Download & Install.
  • How is it used?.
  • Tests.

Download & Install

NPM

$ npm install @comodinx/query-parser

Source code

$ git clone https://github.com/comodinx/query-parser.git
$ cd query-parser
$ npm i

How is it used?

This section was designed to facilitate the interpretation of query parameters.

What parameters are accepted?

Pagination

NameTypeDefault ValueDescription
pagenumber1Indicates which page of the list should be returned.
pageSizenumbernullIndicates the number of records per page.

(go to top)

Sorting

NameTypeDefault ValueDescription
orderstringnullSorting to apply in the search results.
Example,
createdAt-DESC

(go to top)

Grouping

NameTypeDefault ValueDescription
groupstringnullGrouping to apply in the search results.
Example,
platform

(go to top)

Filtering

NameTypeDefault ValueDescription
filtersstringnullFilters to apply in the search.
All table fields are applicable for filtering.
Example,
statusId eq 1

💡 For more details on how filters work and their syntax, check this link.

(go to top)

Relationships

NameTypeDefault ValueDescription
includestringnullRelationships to include in the search results.
Example,
status,r-products

(go to top)

Fields

NameTypeDefault ValueDescription
fieldsstring"*"Fields to include in the search results.
Example,
id,statusId

(go to top)

Extras

NameTypeDefault ValueDescription
extrasstringnullAdditional fields to include in the search results.
Example,
category,brand

(go to top)

Tests

For more concrete examples, I INVITE YOU TO CHECK THE TESTS :)

Run unit tests

npm test

(go to top)

Keywords

query

FAQs

Package last updated on 18 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts