背景
使用时
AWS Amplify JS
,特别是
DataStore
SDK的一部分,您在
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一些随机字符串开发
)?