type Post @model { id: ID! title: String! comments: [Comment] @connection(name: "PostCommentsByCreatedAt", keyField: "commentPostId", sortField: "createdAt") createdAt: String! } type Comment @model { id: ID! content: String! post: Post @connection(name: "PostCommentsByCreatedAt", keyField: "commentPostId", sortField: "createdAt") createdAt: String! }