【发布时间】:2019-05-30 22:36:25
【问题描述】:
AWS-Amplify 提供了几个指令来构建 GraphQL-API。但是我还没有弄清楚如何确保字段的唯一性。
我想在 GraphCool 中做一些类似的事情:
type Tag @model @searchable {
id: ID!
label: String! @isUnique
}
这是一个特定于 AWS-Amplify 的问题。这不是关于如何使用通用 GraphQL 来做到这一点。它非常具体地介绍了如何使用 AWS-Amplify 的 API 模块来做到这一点。 (https://aws-amplify.github.io/docs/js/api)
【问题讨论】:
标签: graphql aws-appsync aws-amplify