diff --git a/src/index.js b/src/index.js index 6a303bb..832d4d4 100644 --- a/src/index.js +++ b/src/index.js @@ -27,7 +27,9 @@ const createRecord = (baseName, record) => { } const toParam = obj => - '?' + Object.keys(obj).filter(key => key).map(key => ( + '?' + Object.keys(obj) + .filter(key => key && key != 'null') + .map(key => ( `${key}=${obj[key]}` )).join('&')