API
2020-11-07 10:21:51 0 举报
API
作者其他创作
大纲/内容
如何区分不同类型?在后端中,comment和reply都是被存储在同一个collection中,所以被划分为5类,通过type加以区分。分别为answer's comment、article's comment、post's comment、comment's reply、reply's reply。对于reply(comment‘s reply和reply‘s reply),如何获取reply所属的类别?当想某一个reply是属于那个类别时,可以通过调用category参数获取。对于某一个reply,有三种类别:anaswer,article和post如何添加answer's comment?mutation { addComment(article_id:\"xxx\
Reply
Comment
Answer's comment
Post's comment
Reply's Reply
Article's comment
Comment's reply
0 条评论
下一页