MCPcopy Create free account
hub / github.com/zenstackhq/zenstack / isRelationshipField

Function isRelationshipField

packages/language/src/utils.ts:156–158  ·  view source on GitHub ↗
(field: DataField)

Source from the content-addressed store, hash-verified

154 * Returns if the given field is a relation field.
155 */
156export function isRelationshipField(field: DataField) {
157 return isDataModel(field.type.reference?.ref);
158}
159
160/**
161 * Returns if the given field is a computed field.

Calls 1

isDataModelFunction · 0.90

Tested by

no test coverage detected