mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 19:11:38 -05:00
12 lines
369 B
JavaScript
12 lines
369 B
JavaScript
import { getRenderContext } from './render_context.js';
|
|
|
|
const { store } = getRenderContext;
|
|
|
|
// use global store
|
|
Mongo.Collection.prototype.findRedux = function (selector = {}, options = {}) {
|
|
return this.findInStore(store, selector, options);
|
|
}
|
|
|
|
Mongo.Collection.prototype.findOneRedux = function (_idOrObject) {
|
|
return this.findOneInStore(store, _idOrObject);
|
|
}
|