some changes to loaders

This commit is contained in:
Wyatt Johnson
2017-05-11 17:52:07 -06:00
parent ae5da93730
commit 47186c4eac
7 changed files with 11 additions and 19 deletions
+2 -2
View File
@@ -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);