MCPcopy Index your code
hub / github.com/Vincit/objection.js / insertAndFetch

Method insertAndFetch

lib/queryBuilder/QueryBuilder.js:599–609  ·  view source on GitHub ↗
(modelsOrObjects)

Source from the content-addressed store, hash-verified

597 }
598
599 insertAndFetch(modelsOrObjects) {
600 return writeOperation(this, () => {
601 const insertOperation = this._insertOperationFactory(this);
602
603 const insertAndFetchOperation = new InsertAndFetchOperation('insertAndFetch', {
604 delegate: insertOperation,
605 });
606
607 this.addOperation(insertAndFetchOperation, [modelsOrObjects]);
608 });
609 }
610
611 insertGraph(modelsOrObjects, opt) {
612 return writeOperation(this, () => {

Callers 7

queryContext.jsFile · 0.80
compositeKeys.jsFile · 0.80
staticHooks.jsFile · 0.80
insert.jsFile · 0.80
examples.tsFile · 0.80

Calls 2

writeOperationFunction · 0.85
addOperationMethod · 0.80

Tested by

no test coverage detected