michaelleeallen / reducto

A small module that aims to reduce the amount of code needed to create apps with a distributed back end in express.js

Home Page:http://michaelleeallen.github.io/reducto/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add "filter" type

michaelleeallen opened this issue · comments

Add a middleware type of "filter" that allows for filtering a list of data objects by key/value.

{ "type": "filter", "dataPath": "path.to.data", "key": "foo", "value": "bar" }