Skip to content

Commit

Permalink
Changed query structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
guptakshitij2308 committed Dec 8, 2024
1 parent 9edd562 commit ac19b43
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ private void createPlayerQueue(Event.EventDetails eventDetails,
eventDetails.getPlayerDetailsList().forEach(playerDetails -> {
Player player = Player.builder()
.displayName(playerDetails.getName())
.teamColor(playerDetails.getTeamColor())
.build();
if (counter.get() < eventDetails.getReservedPlayersCount()) {
reservedPlayers.add(player);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package com.flickmatch.platform.graphql.type;

import lombok.Builder;

@Builder
public class Player {
String displayName;
}
package com.flickmatch.platform.graphql.type;

import lombok.Builder;

@Builder
public class Player {
String displayName;
String teamColor;
}
1 change: 1 addition & 0 deletions platform/src/main/resources/graphql/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ type EVENT {

type Player {
displayName: String!
teamColor: String
}

type SportsVenue {
Expand Down

0 comments on commit ac19b43

Please sign in to comment.