-
Notifications
You must be signed in to change notification settings - Fork 81
Open
Description
Describe the bug
When doing batchGet and specifying attributes to return, ElectroDB does not send the ProjectionExpression parameter.
However, ElectroDB still returns only the attributes I specified, but DynamoDB sends more data to the client than necessary due to the missing ProjectionExpression param.
ElectroDB Version
3.4.3
Entity/Service Definitions
Include your entity model (or a model that sufficiently recreates your issue) to help troubleshoot.
const tasks = new Entity(
{
model: {
entity: "tasks",
version: "1",
service: "taskapp"
},
attributes: {
id: { type: 'string', required: true }
},
indexes: {
projects: {
pk: {
field: "pk",
composite: ["id"]
},
sk: {
field: "sk",
composite: []
}
}
}
},
{ table }
);
Expected behavior
When doing batchGet and specifying attributes to return, ElectroDB should create the ProjectionExpression parameter to prevent sending unnecessary data from DynamoDB to the client.
Metadata
Metadata
Assignees
Labels
No labels