Skip to content

Commit

Permalink
fix(sequelize): Change query to not use sub queries
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-martin committed Jul 4, 2020
1 parent 409f718 commit 80c69d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/query-sequelize/src/query/filter-query.builder.ts
Expand Up @@ -48,7 +48,7 @@ export class FilterQueryBuilder<Entity extends Model<Entity>> {
* @param query - the query to apply.
*/
findOptions(query: Query<Entity>): FindOptions {
let opts: FindOptions = this.applyAssociationIncludes({}, query.filter);
let opts: FindOptions = this.applyAssociationIncludes({ subQuery: false }, query.filter);
opts = this.applyFilter(opts, query.filter);
opts = this.applySorting(opts, query.sorting);
opts = this.applyPaging(opts, query.paging);
Expand Down

0 comments on commit 80c69d6

Please sign in to comment.