code: function filterQuery(query = {}, ...keys) {
    const out = {};
    keys.forEach((key) => {
      if (query[key] !== undefined && query[key] !== null) {
        out[key] = query[key];
      }
    });
    return out;
  }
docs: ----------------------------------------------------------------------------