If query is a function, call it in prefetchAll - fix #153
This commit is contained in:
@@ -145,6 +145,9 @@ export class ApolloProvider {
|
||||
}
|
||||
|
||||
// Query
|
||||
if (typeof queryOptions.query === 'function') {
|
||||
queryOptions.query = queryOptions.query(context)
|
||||
}
|
||||
return new Promise((resolve, reject) => {
|
||||
const options = omit(queryOptions, [
|
||||
...VUE_APOLLO_QUERY_KEYWORDS,
|
||||
|
||||
Reference in New Issue
Block a user