src/services/query-builder.js
Function QueryBuilder
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function QueryBuilder() {
this.getIncludes = (modelForIncludes, fieldNamesRequested) => {
const includes = [];
Object.values(modelForIncludes.associations)
Function getIncludes
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.getIncludes = (modelForIncludes, fieldNamesRequested) => {
const includes = [];
Object.values(modelForIncludes.associations)
.filter((association) => [HAS_ONE, BELONGS_TO].includes(association.associationType))