mirror of
https://github.com/vale981/Vulcan
synced 2025-03-05 09:31:43 -05:00
Fix withDocument
This commit is contained in:
parent
9d3201ccb4
commit
8602bdcc27
1 changed files with 4 additions and 4 deletions
|
@ -6,12 +6,12 @@ import { getSetting, getFragment, getFragmentName, getCollection } from 'meteor/
|
|||
|
||||
export default function withDocument (options) {
|
||||
|
||||
const { collectionName, pollInterval = getSetting('pollInterval', 20000), enableCache = false, extraQueries } = options,
|
||||
queryName = options.queryName || `${collection.options.collectionName}SingleQuery`,
|
||||
singleResolverName = collection.options.resolvers.single && collection.options.resolvers.single.name;
|
||||
const { collectionName, pollInterval = getSetting('pollInterval', 20000), enableCache = false, extraQueries } = options;
|
||||
|
||||
const collection = options.collection || getCollection(collectionName);
|
||||
|
||||
const queryName = options.queryName || `${collection.options.collectionName}SingleQuery`;
|
||||
const singleResolverName = collection.options.resolvers.single && collection.options.resolvers.single.name;
|
||||
|
||||
let fragment;
|
||||
|
||||
if (options.fragment) {
|
||||
|
|
Loading…
Add table
Reference in a new issue