Skip to content

Player

Object type

Implements: Entity

FieldArgsTypeDescription
id—ID! required—
name—String! required—
displayName—StringOperator-curated display name (participants.display_name) — editable via updatePlayer.
firstName—String—
lastName—String—
nationality—String—
dateOfBirth—Date—
currentTeam—TeamDerived current club — the active PERMANENT team_membership (not a stored FK). Reciprocal of Team.squad.
currentTeams—[Team!]! requiredAll clubs the player is CURRENTLY attached to — every team_membership active today (started on or before today and not yet ended), regardless of membership_type, so a LOAN spell appears alongside the parent-club spell. Prefer this over the single PERMANENT currentTeam when showing an operator which club(s) a search hit already belongs to. Empty when the player is unattached (free agent). Derived, not a stored FK.
version—Int! requiredOptimistic-locking version (participants.version) — pass as expectedVersion on updatePlayer.
sportId—ID! required—
createdAt—DateTime! requiredWhen the participant row was first inserted (participants.created_at).
aliases—[ParticipantAlias!]! requiredRecords merged into this canonical via the M22 merge flow (REQ-009).