UNPKG

express-query-params

Version:

Express.js middleware implementing the API Query Spec, converting the params to SQL or a Mongo query

19 lines (18 loc) 418 B
module.exports = { username: 'steve', email: '*@gmail.com', age: '18...25', boughtSomethingOn: '2014-07-01...2014-09-01', createdAt: '>2014-01-01', updatedAt: '<2015-01-01', friends: '>=5', followers: '<=10', banned: 'false', activated: 'true', firstName: '^Steve', accountBalance: '25.22', favouriteColours: 'red,green,blue', hairStyle: '!bald', income: '!30000...!50000', limit: 10 }