0
我正在研究將使用DynamoDB的項目,我對如何更新具有包含項目數組的屬性的文檔有點困惑。DynamoDB更新HasMany關係
我希望用這個NPM模塊https://www.npmjs.org/package/dynamodb-model
例架構
# User Schema
{
"identifier": "String",
"email": "String",
"referral_token": "String",
"campaign_id": "Number",
"first_name": "String"
"last_name": "String",
"gender": "String",
"birth_date": "String",
"username": "String",
"mobile_number": "String",
"postal_code_text": "String",
"classification": "String",
"delivery_email": "Boolean",
"delivery_sms": "Boolean",
"authentications": [{Authentication Schema}]
}
# Authentication Schema
{
"provider": "String",
"uid": "String",
"oauth_token": "String",
"oauth_token_secret": "String",
"nickname": "String"
}
字符串數組是否不夠?另外,請詳細說明您打算如何使用「身份驗證」屬性。如果您只是打算讀取它並覆蓋之前的值,則不需要做任何特別的事情。 – kurtzbot 2014-10-07 21:24:30