Permalink
Browse files

feat(exclude): Exclude column not based on association

  • Loading branch information...
jeremyvergnas committed Oct 25, 2016
1 parent 5941901 commit 7a503f7ab1cfc4b287cbadbf5f23ea4c315a83d5
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/filter.js
@@ -221,8 +221,9 @@ export class Filter extends CriteriaBuilder {
for (let column in columns) {
let columnName = (entityName) ? entityName + '.' + column : column;

// ignore entire or part of a association
if (entityName && (excludeColumns.indexOf(entityName) > -1 || excludeColumns.indexOf(columnName) > -1)) {
// ignore entire or part of a association OR specific field(s)
if ((entityName && (excludeColumns.indexOf(entityName) > -1 || excludeColumns.indexOf(columnName) > -1))
|| excludeColumns.indexOf(columnName) > -1) {
continue;
}

0 comments on commit 7a503f7

Please sign in to comment.