related method

  1. @override
TetherColumn related(
  1. String relationshipName
)
override

Creates a new TetherColumn instance that represents this column as accessed through a named relationship.

This is used to build up path-like references for deeply nested filters or selections in PostgREST.

  • relationshipName: The name of the relationship (e.g., the JSON key used in addSupabaseRelated or a foreign key table name).

Returns a new TetherColumn (typically a RelatedColumnRef) with the relationshipPrefix set.

Implementation

@override
TetherColumn related(String relationshipName) {
  return RelatedColumnRef(
    originalName,
    localName,
    tableName,
    relationshipName,
    tableAlias: tableAlias,
  );
}