( model: IModelService, relation: IRelation | null, )
| 91 | }; |
| 92 | |
| 93 | export 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 | |
| 104 | export const checkPrimaryKeyValueType = (model: IModelService, value: any) => { |
| 105 | // We should check the parameter type |
no outgoing calls
no test coverage detected