Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 2e6f591

Browse files
committed
Restored query cleaning code
1 parent 8239a00 commit 2e6f591

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/index.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,19 @@ class Service {
116116
* @param parentKey
117117
*/
118118
objectify (query, params, parentKey) {
119+
if (params.$eager) {
120+
delete params.$eager
121+
}
122+
if (params.$joinEager) {
123+
delete params.$joinEager
124+
}
125+
if (params.$joinRelation) {
126+
delete params.$joinRelation
127+
}
128+
if (params.$pick) {
129+
delete params.$pick
130+
}
131+
119132
Object.keys(params || {}).forEach(key => {
120133
const value = params[key]
121134

0 commit comments

Comments
 (0)