Remove playerId from team.playerIds AND teamId from player.teamIds in a single atomic transaction.
playerId
team.playerIds
teamId
player.teamIds
Safe to call when the relationship does not exist — idempotent.
Remove
playerIdfromteam.playerIdsANDteamIdfromplayer.teamIdsin a single atomic transaction.Safe to call when the relationship does not exist — idempotent.