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

Method get

dadi/lib/model/schemaStore.js:329–337  ·  view source on GitHub ↗
({name, property})

Source from the content-addressed store, hash-verified

327 }
328
329 async get({name, property}) {
330 const {results} = await this.find({name, property})
331
332 if (results.length === 0) {
333 return Promise.reject(new Error('SCHEMA_NOT_FOUND'))
334 }
335
336 return results[0]
337 }
338
339 async updateFields({fields, name, property}) {
340 const database = await this.connection

Callers 15

addFieldsMethod · 0.95
deleteFieldsMethod · 0.95
updateFieldsMethod · 0.95
updateSettingsMethod · 0.95
config.jsFile · 0.80
index.jsFile · 0.80
onListeningFunction · 0.80
onErrorFunction · 0.80
constructorMethod · 0.80
help.jsFile · 0.80
CacheFunction · 0.80
index.jsFile · 0.80

Calls 1

findMethod · 0.95

Tested by

no test coverage detected