Skip to content

Commit

Permalink
Revert "fix: Distinct on model primary key (#139)"
Browse files Browse the repository at this point in the history
This reverts commit b21d115
  • Loading branch information
erikgaal committed Feb 10, 2021
1 parent ed66986 commit 1515b68
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Queries/EloquentCollectionQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ public function resolve(Arguments $args, $root, $context, ResolveInfo $info): Le
$query = $this->applyOrderBy($query, $args->orderBy);
}

return $query->distinct($this->model->getQualifiedKeyName())
->bakeryPaginate($count, ['*'], 'page', $page);
return $query->distinct()->bakeryPaginate($count, ['*'], 'page', $page);
}
}

0 comments on commit 1515b68

Please sign in to comment.