(model: string)
| 1803 | //#region utilities |
| 1804 | |
| 1805 | private requireModel(model: string): ModelDef { |
| 1806 | const modelDef = this.schema.models[model]; |
| 1807 | if (!modelDef) { |
| 1808 | throw new Error(`Model ${model} is not defined in the schema`); |
| 1809 | } |
| 1810 | return modelDef; |
| 1811 | } |
| 1812 | |
| 1813 | private getIdFields(model: string): FieldDef[] { |
| 1814 | const modelDef = this.requireModel(model); |
no outgoing calls
no test coverage detected