Skip to content

@ReadOnly: Loaded and Never Written

@GraphView()
export class IssueOverview {
@Root() issue: Issue;
@GraphRelationship({ type: 'ASSIGNED_TO', target: () => Person }) assignedTo: Person[]; // written
@ReadOnly() @GraphRelationship({ type: 'REVIEWED_BY', target: () => Person }) reviewers: Person[]; // loaded only
}

Every save skips a @ReadOnly() field. Naming it in replace is an error, and replace: 'all' leaves it alone.