I have this schema:
type Game {
id: ID! @id
status: Boolean @default(value: false)
time: DateTime!
location: String!
stadium: String!
teams: [Team!]! @relation(name: "BothTeams")
}
type Team {
id: ID! @id
name: String!
abbrName: String!
teamLogo: String!
score: Int @default(value: 0)
games: [Game!]! @relation(name: "BothTeams")
}
the Game type is gonna return typically two teams and each team is gonna have a score field.
so if i want to update a game later, specifically the score field,
i would have to change the score of every game with that changed team.
So, is there a way to change the score of a specific game, without mutating the original score.