What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-26 20:59:06
how does we know which field is selected by user in nestjs query
@UseGuards(GqlAuthGuard) @Query(returns => UserType) async getMe(@CurrentUser() user: User, @Info() info): Promise<User> { console.log( info.fieldNodes[0].selectionSet.selections.map(item => item.name.value), ); return ... Add solution