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

Function isRelationField

packages/orm/src/client/query-utils.ts:206–209  ·  view source on GitHub ↗
(schema: SchemaDef, model: string, field: string)

Source from the content-addressed store, hash-verified

204}
205
206export function isRelationField(schema: SchemaDef, model: string, field: string): boolean {
207 const fieldDef = getField(schema, model, field);
208 return !!fieldDef?.relation;
209}
210
211export function isInheritedField(schema: SchemaDef, model: string, field: string): boolean {
212 const fieldDef = getField(schema, model, field);

Callers 2

buildRelationJoinsFunction · 0.90
updateManyFunction · 0.90

Calls 1

getFieldFunction · 0.70

Tested by

no test coverage detected