Revert "fix partition key missing not being able to load the document (#2085)" (#2090)

This reverts commit 257256f915.
This commit is contained in:
sunghyunkang1111
2025-03-27 12:47:14 -05:00
committed by GitHub
parent 8eb53674dc
commit 10f5a5fbfe
3 changed files with 14 additions and 76 deletions

View File

@@ -61,9 +61,8 @@ export function buildDocumentsQueryPartitionProjections(
projectedProperty += `[${projection}]`;
}
});
const fullAccess = `${collectionAlias}${projectedProperty}`;
const wrappedProjection = `IIF(IS_DEFINED(${fullAccess}), ${fullAccess}, {})`;
projections.push(wrappedProjection);
projections.push(`${collectionAlias}${projectedProperty}`);
}
return projections.join(",");
@@ -131,8 +130,6 @@ export const extractPartitionKeyValues = (
if (value !== undefined) {
partitionKeyValues.push(value);
} else {
partitionKeyValues.push({});
}
});