QueryOrmClient is a JavaScript/TypeScript library that provides URL-based ORM-like query construction for building filter, sort, pagination, and field selection parameters in REST API calls. Version 0.0.8 is the latest stable release. It supports rich filter operators (=, !=, >, >=, <, <=, like, in, between), multi-field sorting, select with aliases, and pagination. The library is dependency-free, ships TypeScript type declarations, and works both as an npm module and via a UMD script tag. It automatically encodes URLs and allows optional raw output.
npm install query-orm-clientNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Build a query with where conditions, sorting, field selection, and pagination, then generate the URL query string.
Always call toUriQueryString last in the chain, or assign intermediate results.
Use removeWhere only when you want to clear all conditions for that field.
For 'in' and 'between', use a single comma-separated string or an array with exactly one element containing the comma-separated values.
Use toUriQueryString() for encoded, toUriQueryString(false) for raw. Only use raw if you are certain the values are safe.
Pin to exact version in package.json and test before upgrading.
Ensure you create an instance: const qoc = new queryOrmClient(); (script) or const qoc = new QueryOrmClient(); (ESM).
Make sure the chain starts with new QueryOrmClient() and ends with toUriQueryString(). Do not call toUriQueryString mid-chain.
Run 'npm install query-orm-client' and ensure you are using the correct import: import QueryOrmClient from 'query-orm-client'.
No dependency data recorded yet.