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

Method makeCompoundId

packages/server/src/api/rest/index.ts:2146–2148  ·  view source on GitHub ↗
(idFields: FieldDef[], item: any)

Source from the content-addressed store, hash-verified

2144 }
2145
2146 private makeCompoundId(idFields: FieldDef[], item: any) {
2147 return idFields.map((idf) => item[idf.name]).join(this.idDivider);
2148 }
2149
2150 private makeUpsertWhere(matchFields: any[], attributes: any, typeInfo: ModelInfo) {
2151 const where = matchFields.reduce((acc: any, field: string) => {

Callers 1

injectCompoundIdMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected