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

Method allowGraph

lib/queryBuilder/QueryBuilder.js:210–219  ·  view source on GitHub ↗
(exp)

Source from the content-addressed store, hash-verified

208 }
209
210 allowGraph(exp) {
211 const currentExpr = this._allowedGraphExpression || RelationExpression.create();
212
213 this._allowedGraphExpression = currentExpr.merge(
214 parseRelationExpression(this.modelClass(), exp),
215 );
216
217 checkEager(this);
218 return this;
219 }
220
221 allowedGraphExpression() {
222 return this._allowedGraphExpression;

Callers 9

insertGraph.jsFile · 0.80
upsertGraph.jsFile · 0.80
examples.tsFile · 0.80
eager-loading.tsFile · 0.80
QueryBuilder.jsFile · 0.80
api.tsFile · 0.80
api.jsFile · 0.80

Calls 5

parseRelationExpressionFunction · 0.85
checkEagerFunction · 0.85
createMethod · 0.45
mergeMethod · 0.45
modelClassMethod · 0.45

Tested by

no test coverage detected