Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib/nestedOperations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ export function withNestedOperations<
// add id symbols to result so we can use them to update result relations
// with the results from nested middleware
addIdSymbolsToResult(result);

const dataPath = rootParams.__internalParams.dataPath;
const nestedNextResults = await Promise.all(
calls.map(async (call) => {
const relationsPath = buildTargetRelationPath(call.target);
const relationsPath = buildTargetRelationPath(call.target).filter(path => !dataPath.includes(path));

if (result === null || !relationsPath) {
call.queryPromise.resolve(undefined);
Expand Down