logger.info("Logging in with username {} and password {}, remote {}, authtype: {}",httpRequest.getUserPrincipal(),httpRequest.getRemoteUser(),httpRequest.getAuthType());
.argument(newArgument().name("id").type(GraphQLInt).description("Id of the global user object. If id is 0, currently logged in user is used"))
.type(builder.typeFor(User.class))
.argument(newArgument().name("id").defaultValue(null).type(GraphQLInt).description("Id of the global user object. If id is 0, currently logged in user is used"))
.type(builder.typeFor(EventUser.class))
.dataFetcher(environment->{
Integerid=environment.getArgument("userId");
EventUseruser;
...
...
@@ -590,7 +589,7 @@ public class MoyaGraphQLServlet extends HttpServlet {
if(user==null){
thrownewNullPointerException("User not found with id "+id);
@Operation(description="Get all events for current user",responses={@ApiResponse(responseCode="200",content=@Content(schema=@Schema(implementation=EventRoot.class)))})
@Operation(description="Get all events for current user",responses={@ApiResponse(responseCode="200",content=@Content(schema=@Schema(implementation=EventRoot.class)))})