📅  最后修改于: 2022-03-11 15:02:42.854000             🧑  作者: Mango
@UseGuards(GqlAuthGuard)
@Query(returns => UserType)
async getMe(@CurrentUser() user: User, @Info() info): Promise {
console.log(
info.fieldNodes[0].selectionSet.selections.map(item => item.name.value),
);
return user;
}