(schema: SchemaDef, model: string, field: string)
| 290 | } |
| 291 | |
| 292 | export function getManyToManyRelation(schema: SchemaDef, model: string, field: string) { |
| 293 | const cache = getSchemaLookupCache(schema); |
| 294 | const key = `${model} ${field}`; |
| 295 | if (cache.m2mRelation.has(key)) { |
| 296 | return cache.m2mRelation.get(key); |
| 297 | } |
| 298 | const result = computeManyToManyRelation(schema, model, field); |
| 299 | cache.m2mRelation.set(key, result); |
| 300 | return result; |
| 301 | } |
| 302 | |
| 303 | /** |
| 304 | * Endpoints of an implicit many-to-many relation, identified by its join table name. |
no test coverage detected