【文件属性】:
文件名称:shadow-collection:创建 Mongo.Collections 阴影对象和助手
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-24 17:19:46
JavaScript
影集
流星集合阴影对象和助手
这个包是其他包的实用包。 它提供了一种可重用的非冲突方式来通过转换扩展 Meteor JS Mongo.Collections。
用法
addShadow ( function ( doc , collection , shadow ) {
//doc: do something to the doc like you would in a transform
//collection: the calling collection
//shadow: a unique shadow object for this specific doc, use to store and reference hidden data
return doc ;
} ) ;
例子
一个任意的例子
addShadow ( function ( doc , co
【文件预览】:
shadow-collection-master
----package.js(707B)
----LICENSE(1KB)
----CHANGELOG.md(23B)
----lib()
--------shadow-collection.js(2KB)
----README.md(725B)