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

Function getIdFields

packages/sdk/src/model-utils.ts:144–148  ·  view source on GitHub ↗
(dm: DataModel)

Source from the content-addressed store, hash-verified

142}
143
144export function getIdFields(dm: DataModel) {
145 return getAllFields(dm)
146 .filter((f) => isIdField(f, dm))
147 .map((f) => f.name);
148}
149
150/**
151 * Prefix for auxiliary relation fields generated for delegated models

Calls 2

getAllFieldsFunction · 0.90
isIdFieldFunction · 0.85

Tested by

no test coverage detected