mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
some changes to loaders
This commit is contained in:
@@ -27,11 +27,11 @@ const RootQuery = {
|
||||
.then((ids) => {
|
||||
|
||||
// Perform the query using the available resolver.
|
||||
return Comments.getByQuery({ids, statuses, asset_id, parent_id, limit, cursor, sort, excludeIgnored});
|
||||
return Comments.getConnection({ids, statuses, asset_id, parent_id, limit, cursor, sort, excludeIgnored});
|
||||
});
|
||||
}
|
||||
|
||||
return Comments.getByQuery(query);
|
||||
return Comments.getConnection(query);
|
||||
},
|
||||
comment(_, {id}, {loaders: {Comments}}) {
|
||||
return Comments.get.load(id);
|
||||
|
||||
Reference in New Issue
Block a user