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

Method insertGraph

lib/queryBuilder/QueryBuilder.js:611–622  ·  view source on GitHub ↗
(modelsOrObjects, opt)

Source from the content-addressed store, hash-verified

609 }
610
611 insertGraph(modelsOrObjects, opt) {
612 return writeOperation(this, () => {
613 const insertOperation = this._insertOperationFactory(this);
614
615 const insertGraphOperation = new InsertGraphOperation('insertGraph', {
616 delegate: insertOperation,
617 opt,
618 });
619
620 this.addOperation(insertGraphOperation, [modelsOrObjects]);
621 });
622 }
623
624 insertGraphAndFetch(modelsOrObjects, opt) {
625 return writeOperation(this, () => {

Callers 15

mainFunction · 0.80
withGraph.jsFile · 0.80
relationModify.jsFile · 0.80
transactions.jsFile · 0.80
find.jsFile · 0.80
queryContext.jsFile · 0.80
compositeKeys.jsFile · 0.80
knexSnakeCase.jsFile · 0.80
insertGraph.jsFile · 0.80
testValidationFunction · 0.80
schema.jsFile · 0.80
staticHooks.jsFile · 0.80

Calls 2

writeOperationFunction · 0.85
addOperationMethod · 0.80

Tested by

no test coverage detected