Search code examples
typegraphql

Get info object of the request


I can get query info by using this package, as described in here and here. How do I implement same functionality (i.e. get info object of the request) with type-graphql?


Solution

  • Use @Info decorator to retrieve GraphQLResolveInfo value as the parameter.