(dbAdapter: StorageAdapter, options: any)
| 1494 | |
| 1495 | // Returns a promise for a new Schema. |
| 1496 | const load = (dbAdapter: StorageAdapter, options: any): Promise<SchemaController> => { |
| 1497 | const schema = new SchemaController(dbAdapter); |
| 1498 | ttl.duration = dbAdapter.schemaCacheTtl; |
| 1499 | return schema.reloadData(options).then(() => schema); |
| 1500 | }; |
| 1501 | |
| 1502 | // Builds a new schema (in schema API response format) out of an |
| 1503 | // existing mongo schema + a schemas API put request. This response |
nothing calls this directly
no test coverage detected
searching dependent graphs…