Association relationships
AssociationRelationship.directed is resolved to a boolean for association
relationships:
interface ArchiRelationship { directed: boolean | null;}Defaults
Section titled “Defaults”- For an
AssociationRelationship, the field is always resolved to a boolean —falseis the native default when the attribute is absent (Archi’s own type default). - For every other relationship type,
directedisnull.
Example
Section titled “Example”const undirected = model.relationships.filter( (r) => r.type === 'AssociationRelationship' && r.directed === false,);
console.log('undirected associations:', undirected.length);