MCPcopy
hub / github.com/Vincit/objection.js / fetchGraph

Method fetchGraph

lib/model/Model.js:632–638  ·  view source on GitHub ↗
($models, expression, options = {})

Source from the content-addressed store, hash-verified

630 }
631
632 static fetchGraph($models, expression, options = {}) {
633 return this.query(options.transaction)
634 .resolve(this.ensureModelArray($models))
635 .findOptions({ dontCallFindHooks: true })
636 .withGraphFetched(expression, options)
637 .runAfter((models) => (Array.isArray($models) ? models : models[0]));
638 }
639
640 static traverse(...args) {
641 const { traverser, models, filterConstructor } = getTraverseArgs(...args);

Callers

nothing calls this directly

Calls 7

queryMethod · 0.95
ensureModelArrayMethod · 0.95
runAfterMethod · 0.80
withGraphFetchedMethod · 0.80
findOptionsMethod · 0.80
resolveMethod · 0.80
isArrayMethod · 0.45

Tested by

no test coverage detected