diff --git a/src/mixin.js b/src/mixin.js index 4149d0b..db2e038 100644 --- a/src/mixin.js +++ b/src/mixin.js @@ -1,4 +1,4 @@ -import { Globals } from '../lib/utils' +import { Globals, reapply } from '../lib/utils' function hasProperty (holder, key) { return typeof holder !== 'undefined' && Object.prototype.hasOwnProperty.call(holder, key) @@ -91,6 +91,7 @@ function launch () { if (key.charAt(0) !== '$') { let options = apollo[key] const smart = this.$apollo.addSmartQuery(key, options) + options = reapply(options, this) if (options.prefetch !== false && apollo.$prefetch !== false && !smart.skip) { this.$_apolloPromises.push(smart.firstRun) }