type Todo @model { id: ID! name: String! description: String comments: [Comment] @hasMany } type Comment @model { id: ID! content: String todo: Todo @hasOne } type CommentConnection { items: [Comment] nextToken: String } type Query { commentsForTodo(todoId: ID!, limit: Int, nextToken: String): CommentConnection }