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

Method makeDefaultIdKey

packages/server/src/api/rest/index.ts:2141–2144  ·  view source on GitHub ↗
(idFields: FieldDef[])

Source from the content-addressed store, hash-verified

2139 }
2140
2141 private makeDefaultIdKey(idFields: FieldDef[]) {
2142 // TODO: support `@@id` with custom name
2143 return idFields.map((idf) => idf.name).join(DEFAULT_ID_DIVIDER);
2144 }
2145
2146 private makeCompoundId(idFields: FieldDef[], item: any) {
2147 return idFields.map((idf) => item[idf.name]).join(this.idDivider);

Callers 5

processCreateMethod · 0.95
processUpdateMethod · 0.95
makeIdConnectMethod · 0.95
makeUpsertWhereMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected