2017-03-26 51 views

回答

0

您可以使用ProjectionExpression指定您希望DynamoDB爲您檢索哪些屬性。

這裏有一個.NET example, from the docs

// using Amazon.DynamoDBv2; 
// using Amazon.DynamoDBv2.Model; 

var client = new AmazonDynamoDBClient(); 
var request = new GetItemRequest 
{ 
    TableName = "YourTableName", 
    ProjectionExpression = "Id, Attribute1, Attribute2", 
    Key = new Dictionary<string, AttributeValue> 
    { 
    { "Id", new AttributeValue { N = "some_value_for_id" } } 
    }, 
}; 
var response = client.GetItem(request); 
相關問題