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

Method bootstrap

dadi/lib/model/schemaStore.js:166–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164 }
165
166 async bootstrap() {
167 const {results: schemas} = await this.find()
168
169 schemas.forEach(schema => {
170 // Loading the model.
171 Model({
172 isListable: true,
173 name: schema.name,
174 property: schema.property,
175 schema: schema.fields,
176 settings: schema.settings
177 })
178 })
179 }
180
181 async create({fields, name, settings, property, timestamp}) {
182 const {results: existingSchemas} = await this.find({

Callers 1

index.jsFile · 0.80

Calls 2

findMethod · 0.95
ModelFunction · 0.85

Tested by

no test coverage detected