我是 graphql 的新手。我正在使用 aws appsync 实现一个 react-native 应用程序。我们在实现 @isUnique 时遇到了问题,给它一个错误
Failed to parse schema document - ensure it's a valid SDL-formatted document.
type Person {
id: ID! @isUnique
createdAt: String!
updateAt: String!
name: String!
messages: [Messages!]!
@relation(name: "UserMessages")}
我想为模式中的每个用户生成一个随机 id。我们如何实现这一点。提前致谢!!