MCPcopy Create free account
hub / github.com/axe-api/axe-api / getParentColumn

Function getParentColumn

packages/axe-api/src/Handlers/Helpers.ts:93–102  ·  view source on GitHub ↗
(
  model: IModelService,
  relation: IRelation | null,
)

Source from the content-addressed store, hash-verified

91};
92
93export const getParentColumn = (
94 model: IModelService,
95 relation: IRelation | null,
96) => {
97 if (!relation) {
98 return null;
99 }
100
101 return camelCase(`${model.name}-${relation.primaryKey}`);
102};
103
104export const checkPrimaryKeyValueType = (model: IModelService, value: any) => {
105 // We should check the parameter type

Callers 3

PreparePhase.tsFile · 0.90
addForeignKeyQueryFunction · 0.85
getParentIndexQueryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected