zcamp-inc / server

TypeScript | PostgreSQL | Redis | GraphQL Backend for ZCamp
1 stars 0 forks source link

Reply comment resolver update #7

Open Johnmiicheal opened 2 years ago

Johnmiicheal commented 2 years ago

insert thought cloud I was thinking, we have the createReply have the parentCommentID field so i can do something like this inside comment page: if(comment.id === parentCommentID) { ...indent under parentComment } else { return null }

image

what we have now. we can then do getReplyComment, map it under the getPostComment, then if parentCommentID === postComment.id ? indent : null