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

Function isComputedField

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

Source from the content-addressed store, hash-verified

161 * Returns if the given field is a computed field.
162 */
163export function isComputedField(field: DataField) {
164 return hasAttribute(field, '@computed');
165}
166
167/**
168 * Determines if the given data model is a delegate model (i.e. marked with `@@delegate` attribute).

Callers 1

Calls 1

hasAttributeFunction · 0.70

Tested by

no test coverage detected