We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To control api we are use:
/api/item?name=#1|2|3
We make simple module to convert resp.query to "mongose model find"
https://github.com/alexsuslov/wcQuery
Simple use in server api controller:
"use strict" _ = require("lodash") Item = require("./item.model") Query = require("wc-query") fields = {} # Get list of items exports.index = (req, res) -> query = Query(req.query) Item.find query.conditions, fields, query.options, (err, items) -> throw err if err return handleError(res, err) if err res.json 200, items
BRGD Alex
The text was updated successfully, but these errors were encountered:
Thanks for sharing, I'll definitely use this.
Sorry, something went wrong.
No branches or pull requests
To control api we are use:
Comparison Query Operators
EQ
NEQ
GT
GTE
LT
LTE
IN
NIN
/api/item?name=#1|2|3
Evaluation Query Operators
REGEX
Sort
Limit
We make simple module to convert resp.query to "mongose model find"
https://github.com/alexsuslov/wcQuery
Simple use in server api controller:
BRGD
Alex
The text was updated successfully, but these errors were encountered: