Skip to content

Commit

Permalink
Restored special params clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
Dekel committed Dec 28, 2018
1 parent 2ac9e59 commit 95c7cfe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@ class Service extends AdapterService {
* @param methodKey
*/
objectify (query, params, parentKey, methodKey) {
if (params.$eager) { delete params.$eager }
if (params.$joinEager) { delete params.$joinEager }
if (params.$joinRelation) { delete params.$joinRelation }
if (params.$pick) { delete params.$pick }

Object.keys(params || {}).forEach(key => {
const value = params[key]

Expand Down

0 comments on commit 95c7cfe

Please sign in to comment.