educative.io

Q questions on query data on dynamodb

I don’t understand the the query parameter

In the session the query data as the below
aws dynamodb query \

–table-name Medicines \

–select SPECIFIC_ATTRIBUTES \

–projection-expression “AvailableBrands” \

where is the SPECIFIC_ATTRIBUTES is from and what does --projection-expression means ?

Hi Prem!
We use the SPECIFIC_ATTRIBUTES keyword to specify the property that we don’t want to get all the data from the table but the specific one and --projection-expression keyword to specify the name of that attribute.

Hope it will clear your confusion. If you still have any queries please let us know.
Thank you.