code: function makeCallingParams (
    context, query, include = ['provider', 'authenticated', 'user'], inject = {}
  ) {
    const included = query ? { query } : {};
    const defaults = { _populate: 'skip', paginate: false };
  
    if (include) {
      (Array.isArray(include) ? include : [include]).forEach(name => {
        if (context.params && name in context.params) included[name] = context.params[name];
      });
    }
  
    return Object.assign(defaults, included, inject);
  }
docs: copied from feathers-hooks-common v4 so Batch-Loader can be used with FeathersJS v3 (Buzzard)