Skip to content

Commit

Permalink
perf(types): get rid of outdated hack
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaSemenov committed Apr 16, 2022
1 parent a2050c5 commit 55192c1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/resolver/relation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,7 @@ export function RelationResolver<M extends Model, R extends Model>(
query
.withGraphFetched(
`${options?.modelField || field}(${field}) as ${field}`,
paginate
? {
joinOperation: "leftJoin", // Remove after https://github.com/Vincit/objection.js/issues/1954 is fixed
maxBatchSize: 1,
}
: undefined
paginate ? { maxBatchSize: 1 } : undefined
)
.modifiers({
[field]: (subquery) => {
Expand Down

0 comments on commit 55192c1

Please sign in to comment.