Skip to content

Commit

Permalink
Merge pull request #6 from Ryanthegiantlion/master
Browse files Browse the repository at this point in the history
Fixed GET_MANY handler
  • Loading branch information
josx authored Mar 27, 2017
2 parents 30b1501 + 6c27bba commit feca7a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/restClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ export default client => {

switch (type) {
case GET_MANY:
let ids = params.ids || [];
query = {'id': { '[$in]': ids }};
query['$limit'] = ids.length;
return service.find({ query });
case GET_MANY_REFERENCE:
case GET_LIST:
const {page, perPage} = params.pagination || {};
Expand Down

0 comments on commit feca7a5

Please sign in to comment.