Amazon web services AWS Amplify-GraphQL与现有cognito用户池的多对多关系

Amazon web services AWS Amplify-GraphQL与现有cognito用户池的多对多关系,amazon-web-services,graphql,amazon-cognito,aws-amplify,aws-amplify-cli,Amazon Web Services,Graphql,Amazon Cognito,Aws Amplify,Aws Amplify Cli,在AWS amplify文档中,我了解了以下针对用户和评论的多对多关系的实现 type Post @model { id: ID! title: String! editors: [PostEditor] @connection(keyName: "byPost", fields: ["id"]) } # Create a join model and disable queries as you don't need them #

在AWS amplify文档中,我了解了以下针对用户和评论的多对多关系的实现

    type Post @model {
  id: ID!
  title: String!
  editors: [PostEditor] @connection(keyName: "byPost", fields: ["id"])
}

# Create a join model and disable queries as you don't need them
# and can query through Post.editors and User.posts
type PostEditor
  @model(queries: null)
  @key(name: "byPost", fields: ["postID", "editorID"])
  @key(name: "byEditor", fields: ["editorID", "postID"]) {
  id: ID!
  postID: ID!
  editorID: ID!
  post: Post! @connection(fields: ["postID"])
  editor: User! @connection(fields: ["editorID"])
}

type User @model {
  id: ID!
  username: String!
  posts: [PostEditor] @connection(keyName: "byEditor", fields: ["id"])
}
然而,我想知道如何用现有的cognito用户池替换用户类型来实现相同的功能?