src/http/middleware/add-query-to-url.js
function addQueryToUrl ({ query, decamelizeQuery=true, url }) {
  if (!query) return
  const transformedQuery = decamelizeQuery ? decamelizeKeys(query) : query
  return {
    url: url + '?' + stringify(transformedQuery)
  }
}
function addQueryToUrl ({ query, decamelizeQuery=true, url }) {
  if (!query) return
  const transformedQuery = decamelizeQuery ? decamelizeKeys(query) : query
  return {
    url: url + '?' + stringify(transformedQuery)
  }
}
function addQueryToUrl ( { query , decamelizeQuery = true , url } ) { if ( ! query ) return const transformedQuery = decamelizeQuery ? decamelizeKeys ( query ) : query return { url : url + '?' + stringify ( transformedQuery ) } }
Adds a query string to the url if a 'query' option is provided
Adds a query string to the url if a query option is provided