CCBCodeMonkey
01/19/2019, 4:35 AMEcker
01/19/2019, 5:46 AMCCBCodeMonkey
01/19/2019, 6:57 AMCCBCodeMonkey
01/19/2019, 6:57 AMPost {
Comments: [Comment!]!
}
CCBCodeMonkey
01/19/2019, 6:58 AMComment {
parentComment: commentID,
commentText: String,
}
CCBCodeMonkey
01/19/2019, 6:58 AMEcker
01/19/2019, 9:27 AMComment {
parentComment: Comment!,
commentText: String,
}
Then the relationship is clear, and if a comment is deleted the children can automatically be cascade deleted as well.CCBCodeMonkey
01/20/2019, 8:48 AMCCBCodeMonkey
01/20/2019, 8:48 AMCCBCodeMonkey
01/20/2019, 8:48 AMEcker
01/20/2019, 12:00 PMCCBCodeMonkey
01/20/2019, 7:53 PMArnab
01/21/2019, 8:56 AMComment
can have a field replies: [Reply]
but replies do not have anything else but the content of the reply itselfArnab
01/21/2019, 8:56 AM