mirror of
https://github.com/vale981/Vulcan
synced 2025-03-07 02:21:43 -05:00
12 lines
371 B
JavaScript
12 lines
371 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);
|
|
};
|