【文件属性】:
文件名称:feathers-mongo-collections:管理 MongoDB 集合的 FeathersJS 服务
文件大小:8KB
文件格式:ZIP
更新时间:2021-06-22 07:50:18
JavaScript
feathers-mongo-collections 服务
创建服务来管理数据库中的集合。
除了 get/findOne 之外, feathers-mongo-collections就像标准服务一样工作。 它在执行create 、 update和remove时使用集合名称作为id值。
安装
npm install feathers-mongo-database --save
入门
要创建feathers-mongo-collections服务的实例,首先连接到您的MongoDB 数据库。 然后将连接的数据库传递给feathers-mongo-collections 。
var feathers = require ( 'feathers' ) ;
var feathersMongoColls = require ( 'feathers-mongo-collections' ) ;
【文件预览】:
feathers-mongo-collections-master
----.jshintrc(557B)
----.gitignore(181B)
----package.json(857B)
----LICENSE(1KB)
----node_modules()
--------async()
----README.md(4KB)
----lib()
--------feathers-mongo-collections.js(3KB)
----.npmignore(608B)