By using AWS re:Post, you agree to the Terms of Use

DynamoDB ProjectionExpression exclude attribute (all fields except one)


I have a requirement where my dynamodb table has many attributes, and i need all of them in the projection expression except one or two columns which i dont need in response. (I am scanning the table).
Is there a way how can i define this in ProjectionExpression (all except this one column).
I have seen examples where ProjectionExpression only takes what all "is required" and not the other way.

asked 4 years ago205 views
1 Answer

There is not an "all but X attributes" type of filter or syntax for projections, you have to list out all the attributes you want to project if you only want a subset.

answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions