1 @UseGuards(GqlAuthGuard)
2 @Query(returns => UserType)
3 async getMe(@CurrentUser() user: User, @Info() info): Promise<User> {
4 console.log(
5 info.fieldNodes[0].selectionSet.selections.map(item => item.name.value),
6 );
7 return user;
8 }
9