@36node/query-normalizr
这里 query-normalizr 的作用: 将经过类型转换的 koa query 规则化成对应数据库的 query。
Install
yarn add @36node/query-normalizr
Usage
import { toMongooseQuery } from "@36node/query-normalizr";
console.log(rawQuery);
const mQuery = toMongooseQuery(rawQuery);
console.log(mQuery);
Query in route (QIR)
reference in url.md
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
query-normalizr © 36node, Released under the MIT License.
Authored and maintained by 36node with help from contributors (list).
github.com/zzswang · GitHub @36node · Twitter @y