(schemas)
| 317 | } |
| 318 | |
| 319 | formatForOutput(schemas) { |
| 320 | const isArray = Array.isArray(schemas) |
| 321 | const schemasArray = isArray ? schemas : [schemas] |
| 322 | const formattedSchemas = schemasArray.map(schema => { |
| 323 | return Object.assign({}, schema, {_id: undefined}) |
| 324 | }) |
| 325 | |
| 326 | return isArray ? formattedSchemas : formattedSchemas[0] |
| 327 | } |
| 328 | |
| 329 | async get({name, property}) { |
| 330 | const {results} = await this.find({name, property}) |
no outgoing calls
no test coverage detected