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 7cea00f commit d85276f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/apollo-tracing/src/index.ts
Expand Up @@ -62,9 +62,7 @@ export const plugin = (_futureOptions = {}) => (): ApolloServerPlugin => ({
endWallTime = new Date();
},

willResolveField(...args) {
const [, , , info] = args;

willResolveField({ info }) {
const resolverCall: ResolverCall = {
path: info.path,
fieldName: info.fieldName,
Expand Down

0 comments on commit d85276f

Please sign in to comment.