
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
prisma-api-query-builder
Advanced tools
[View Implementation](https://github.com/jeremiah-olisa/shopping-list)
Kind: global class
The constructor takes in a modelEntity, entity, query, and validStringFilter
| Param | Type | Description |
|---|---|---|
| modelEntity | PrismaModelDelegate | This is the prisma entity e.g this.prisma.shoppingItem |
| entity | TModelEntity | This is the entity that you want to query. it also contains all the settings for filtering and selecting of data |
| [query] | IQueryFields | This is the query string fields from the api. |
| validStringFilter | Array.<PrismaValidStringFilter> | This is an array of PrismaValidStringFilter. This is used to validate the string filter. |
keysakes a query string, parses it into an object, and then recursively filters out any invalid
Kind: instance method of ApiQueryBuilder
Returns: The builder object with the filter property set to the validFilterObj.
the sortable columnsery parameter, splits it into an array, and then filters it to only include
Kind: instance method of ApiQueryBuilder
Returns: The builder object
whether the column was selected or notmn names and the values being true or false depending on
Kind: instance method of ApiQueryBuilder
Returns: The builder object
property to the knex query builderparameter called include then we will add the select
Kind: instance method of ApiQueryBuilder
Returns: The builder object with the select property set to the selectables object.
take values for the paginationom the query string, and then uses them to calculate the skip and
Kind: instance method of ApiQueryBuilder
properties. The builder object with the paginate property set to an object with skip and take
them to the builderObj propertyselect, and sort properties from the builder object and assigns
Kind: instance method of ApiQueryBuilder
Returns: The builder object
query.unction sorts, filters, selects, populates, and paginates the query, and then returns the
Kind: instance method of ApiQueryBuilder
Returns: The query object.
It returns a paginated object with the data and the paginated object
Kind: instance method of ApiQueryBuilder
Returns: An object with two properties: data and paginated.
and returns the data and paginated objectatch the filter, calculates the total number of pages,ct,
| --- | --- | --- |
| selectables | Array.<string> | string[] - an array of strings that are the selectable options |
| array | Array.<string> | string[] - the array of strings to convert to a boolean object |
it's empty filter object, picks only the valid keys, and then recursively filters the object until
Kind: instance method of ApiQueryBuilder
| Param | Type | Description |
|---|---|---|
| filterObj | object | object - The object that you want to filter. |
FAQs
[View Implementation](https://github.com/jeremiah-olisa/shopping-list)
We found that prisma-api-query-builder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.