@36node/mongoose-helper

A module boilerplate for nodejs and web.

Usage no npm install needed!

<script type="module">
  import 36nodeMongooseHelper from 'https://cdn.skypack.dev/@36node/mongoose-helper';
</script>

README

mongoose-helper

version downloads

mongoose-helper 提供标准的 mongoose 方法。

我们定义了:

  1. 标准的 query in url 格式.
  2. 标准的 service 层 Query 数据格式.

mongoose-helper 的 list 方法中将会进一步将 QueryInService 转成成适合 mongoose 查询的语法。

Install

yarn add mongoose-helper

Usage

import helper from ("mongoose-helper");

// mongoose schema
schema.plugin(helper, options);

Query Standard

我们制定了一套前端的 query 语法标准。请参考:

Read the document of tpl-service.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

mongoose-helper © 36node, Released under the MIT License.

Authored and maintained by 36node with help from contributors (list).

github.com/zzswang · GitHub @36node