* Returns model field entries, excluding Unsupported fields.
(model: string)
| 168 | * Returns model field entries, excluding Unsupported fields. |
| 169 | */ |
| 170 | private getModelFields(model: string): [string, FieldDef][] { |
| 171 | const modelDef = requireModel(this.schema, model); |
| 172 | return Object.entries(modelDef.fields).filter(([, def]) => def.type !== 'Unsupported'); |
| 173 | } |
| 174 | |
| 175 | private shouldIncludeRelations(options?: CreateSchemaOptions): boolean { |
| 176 | return options?.relationDepth === undefined || options.relationDepth > 0; |
no test coverage detected