Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Resolver): Add debug methods to resolver:
debugParams() - console log resolveParams debugPayload() - console log resolve payload debugExecTime() - console log execution time debug() - call debugParams, debugPayload and debugExecTime Debug resolvers in runtime: GQC.rootQuery().addFields({ userById: UserTC.getResolver('findById').debugExecTime(), userByIds: UserTC.getResolver('findByIds').debugParams().debugPayload(), userMany: UserTC.getResolver('findMany').debug(), }); Also you may debug resolver structure in build phase: console.log(UserTC.getResolver('findById').toString());
- Loading branch information
Showing
9 changed files
with
735 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.