【发布时间】:2021-05-08 07:58:17
【问题描述】:
上下文
在使用 AWS Amplify JS 时,特别是 SDK 的 DataStore 部分,您在 schema.graphql 中指定的每个模型都会获得一个关联的 DynamoDB 表:
schema.graphql
type Blog @model {
id: ID!
name: String!
posts: [Post] @connection(name: "BlogPosts")
}
type Post @model {
id: ID!
title: String!
blog: Blog @connection(name: "BlogPosts")
comments: [Comment] @connection(name: "PostComments")
}
type Comment @model {
id: ID!
content: String
post: Post @connection(name: "PostComments")
}
这对应于在 AWS 中创建的 4 个 DynamoDB 表
-
Blog-somerandomstring-dev—(有道理) -
Post-somerandomstring-dev—(有道理) -
Comment-somerandomstring-dev—(有道理) -
AmplifyDataStore-somerandomstring-dev—(这个表是从哪里来的?)
问题
鉴于上述情况,这个额外表 (AmplifyDataStore-somerandomstring-dev) 背后的解释和/或功能是什么?
【问题讨论】:
标签: amazon-dynamodb aws-amplify aws-amplify-cli