【发布时间】:2021-03-19 17:15:11
【问题描述】:
假设这是我的数据库表
[
{PK:'#author_1', SK: 'author', name: 'aytor'},
{PK:'#author_2', SK: 'author', name: 'ryan'},
{PK:'#book_1', SK: '#author_1', title: 'hello 123', author_name: 'aytor'},
{PK:'#book_2', SK: '#author_1', title: 'hello 456', author_name: 'aytor'},
{PK:'#book_3', SK: '#author_1', title: 'hello 789', author_name: 'aytor'},
]
我的问题是,如果 管理员更改作者 姓名,我该如何更新所有图书作者姓名。
访问模式:获取author_pk并更新BookSK=author_PK所在的所有书籍
我正在尝试将AWS-SDK 用于节点js 来解决此问题
【问题讨论】:
标签: amazon-web-services nosql amazon-dynamodb