Skip to content

Commit

Permalink
Switch to new willResolveField object parameter, rather position.
Browse files Browse the repository at this point in the history
Implements pattern gained by a926b7e in #3988.

Ref: #3998
  • Loading branch information
abernix committed May 8, 2020
1 parent d40a56c commit 6f0dee7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/apollo-cache-control/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ export const plugin = (
return {
executionDidStart: () => ({
executionDidEnd: () => setOverallCachePolicyWhenUnset(),
willResolveField(...args) {
const [, , , info] = args;
willResolveField({ info }) {
let hint: CacheHint = {};

// If this field's resolver returns an object or interface, look for
Expand Down

0 comments on commit 6f0dee7

Please sign in to comment.