Installation
GraphQL-Utils also offers a NestJS ๐ฅ integration for all the utilities outlined in this documentation to make the code shorter and more intuitive in this framework.
The NestJS package can be installed with npm:
Or yarn:
Usage#
The most intuitive way to use the NestJS package is with the @Selections() decorator. It supports the same options as resolveSelections() and also a shorthand, where the first parameter is the parent field, and the second is an array of selections:
QueryLive
Code
Output