const ALL = 'ALL';
module.exports = function(config){
  return function(options){
    options = options || {};
    let {scope, query} = options.criteria; //Cannot be read from the store ?
    if(scope === ALL){
      //Call the search action.
    }else{
      //The search is unscoped.

      
    }
  };
}

@@ -244,54 +244,363 @@
     
-%7Delse%7B%0A      //The search is unscoped.%0A%0A      
+  options.service.scope(options);%0A    %7Delse%7B%0A      if(options.scroll)%7B //Maybe rename pagination or something like that.%0A        options.service.unScope(options).then((response)=%3E%7B%0A            // Read the previous data from options.previous;%0A            return response;%0A        %7D);%0A        //Read the totalCount%0A%0A      %7D%0A      //The search is unscoped.%0A%0A
 %0A   
@@ -608,9 +608,10 @@
 %7D%0A  %7D;%0A%7D
+;
 %0A

Add questions?