New info argument added to resolvers

Jakub WieczorekJakub WieczorekJamie BartonJamie Barton
New info argument added to resolvers

We just added a new info argument that can be used with all Edge Resolvers.

export default function Resolver(root, args, context, info) { // ... }

The info argument has the following properties:

  • fieldName — The name of the field that called the resolver.
  • path — The fields traversed prior to the called resolver.
  • variableValues — A map of any variables passed to the query.

More fields will be added to the info argument in the future, including the full operation AST.

We'd love to hear your feedback and ideas, so join us on Discord.