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

Function parseModify

lib/relations/Relation.js:360–371  ·  view source on GitHub ↗
(ctx)

Source from the content-addressed store, hash-verified

358}
359
360function parseModify(ctx) {
361 const mapping = ctx.mapping;
362 const modifier = mapping.modify || mapping.filter;
363 const modify =
364 modifier &&
365 createModifier({
366 modifier,
367 modelClass: ctx.relatedModelClass,
368 });
369
370 return Object.assign(ctx, { modify });
371}
372
373function parseBeforeInsert(ctx) {
374 let beforeInsert;

Callers 1

setMappingMethod · 0.70

Calls 1

createModifierFunction · 0.85

Tested by

no test coverage detected