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

Method create

lib/model/graph/ModelGraph.js:16–19  ·  view source on GitHub ↗
(rootModelClass, roots)

Source from the content-addressed store, hash-verified

14 }
15
16 static create(rootModelClass, roots) {
17 const builder = ModelGraphBuilder.buildGraph(rootModelClass, roots);
18 return new ModelGraph(builder.nodes, builder.edges);
19 }
20
21 static createEmpty() {
22 return new ModelGraph([], []);

Callers 15

inheritFunction · 0.45
getRelationsMethod · 0.45
getRelationUnsafeMethod · 0.45
relatedQueryFunction · 0.45
validateFunction · 0.45
bindRelationsFunction · 0.45
testFunction · 0.45
testParseFunction · 0.45
testCloneFunction · 0.45
testMergeFunction · 0.45
testPathFunction · 0.45

Calls 1

buildGraphMethod · 0.80

Tested by 1

testFunction · 0.36