MCPcopy Create free account
hub / github.com/dadi/api / find

Method find

dadi/lib/model/schemaStore.js:310–317  ·  view source on GitHub ↗
(query = {})

Source from the content-addressed store, hash-verified

308 }
309
310 async find(query = {}) {
311 const database = await this.connection
312
313 return database.find({
314 collection: config.get('schemas.collection'),
315 query
316 })
317 }
318
319 formatForOutput(schemas) {
320 const isArray = Array.isArray(schemas)

Callers 15

addFieldsMethod · 0.95
addFromSeedMethod · 0.95
bootstrapMethod · 0.95
createMethod · 0.95
deleteFieldsMethod · 0.95
getMethod · 0.95
updateFieldsMethod · 0.95
updateSettingsMethod · 0.95
clients.jsFile · 0.80
passwordReset.jsFile · 0.80
roles.jsFile · 0.80
hooks.jsFile · 0.80

Calls 1

getMethod · 0.80

Tested by

no test coverage detected