src/utils/query.js
function pickQueryParams(obj) {
  return [
    'where',
    'orderBy',
    'limit',
    'startAfter',
    'startAt',
    'endAt',
    'endBefore',
  ].reduce((acc, key) => (obj[key] ? { ...acc, [key]: obj[key] } : acc), {});
}
function pickQueryParams(obj) {
  return [
    'where',
    'orderBy',
    'limit',
    'startAfter',
    'startAt',
    'endAt',
    'endBefore',
  ].reduce((acc, key) => (obj[key] ? { ...acc, [key]: obj[key] } : acc), {});
}
function pickQueryParams ( obj ) { return [ 'where' , 'orderBy' , 'limit' , 'startAfter' , 'startAt' , 'endAt' , 'endBefore' , ] . reduce ( ( acc , key ) => ( obj [ key ] ? { ... acc , [ key ] : obj [ key ] } : acc ) , { } ) ; }
Pcik query params from object
@param {Object} obj - Object from which to pick query params
@return {Object}
Pcik query params from object