mirror of
https://github.com/wassname/talk.git
synced 2026-07-12 23:47:14 +08:00
14 lines
309 B
JavaScript
14 lines
309 B
JavaScript
const Comment = {
|
|
user({author_id}, _, {loaders}) {
|
|
return loaders.Users.getByID.load(author_id);
|
|
},
|
|
replies({id}, _, {loaders}) {
|
|
return loaders.Comments.getByParentID.load(id);
|
|
},
|
|
actions({id}, _, {loaders}) {
|
|
return loaders.Actions.getByID.load(id);
|
|
}
|
|
};
|
|
|
|
module.exports = Comment;
|