polygonal-mongo-api

mongo api used by polygonal app

Usage no npm install needed!

<script type="module">
  import polygonalMongoApi from 'https://cdn.skypack.dev/polygonal-mongo-api';
</script>

README

polygonal-mongo-api

hapi-mongodb mongoose

该模块提供 polygonal app 后端工程的 mongoose

配置

mongo:
  uri: 'mongodb://localhost:27017/polygonal'

使用

安装

$ yarn add polygonal-mongo-api

index.js 中注入插件:

register: [
  ...
  'polygonal-mongo-api',
],