Skip to content

Commit

Permalink
Merge pull request #394 from TradeWing/recursive-fetch-filter-options
Browse files Browse the repository at this point in the history
Fix recursiveFetch to respect fetchOptions.scope on recursion
  • Loading branch information
theodorDiaconu authored Nov 4, 2019
2 parents 87f5a2a + 9bd9dcf commit d26a336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/query/lib/recursiveFetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function fetch(node, parentObject, fetchOptions = {}) {

_.each(node.collectionNodes, collectionNode => {
_.each(results, result => {
const collectionNodeResults = fetch(collectionNode, result);
const collectionNodeResults = fetch(collectionNode, result, fetchOptions);
result[collectionNode.linkName] = collectionNodeResults;
//delete result[node.linker.linkStorageField];

Expand Down

0 comments on commit d26a336

Please sign in to comment.