Skip to content
#

querystring

Here are 121 public repositories matching this topic...

jamesdesouza
jamesdesouza commented Apr 25, 2020

I just want to share a function that I just wrote, in order to achieve nested filter with sequelize

import _ from 'lodash';
import Sequelize from 'sequelize';
import restfulFilter from 'restful-filter';

export const paramsToSequelize = (queryParams, model) => {
  if (Object.keys(queryParams || {}).length > 0) {
    const processedParams = { where: {}, include: [] };
    const filte

Improve this page

Add a description, image, and links to the querystring topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the querystring topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.