mirror of
https://github.com/vale981/grapher
synced 2025-03-12 05:46:40 -04:00
14 lines
No EOL
333 B
JavaScript
14 lines
No EOL
333 B
JavaScript
import Query from './query.js';
|
|
|
|
_.extend(Mongo.Collection.prototype, {
|
|
createQuery(body, params = {}) {
|
|
return new Query(this, body, params);
|
|
},
|
|
|
|
createQueryFactory(body, params) {
|
|
const collection = this;
|
|
return () => {
|
|
return new Query(collection, body, params);
|
|
}
|
|
}
|
|
}); |