{"action":"opened","issue":{"url":"https://api.github.com/repos/sphereio/sphere-node-sdk/issues/180","repository_url":"https://api.github.com/repos/sphereio/sphere-node-sdk","labels_url":"https://api.github.com/repos/sphereio/sphere-node-sdk/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/sphereio/sphere-node-sdk/issues/180/comments","events_url":"https://api.github.com/repos/sphereio/sphere-node-sdk/issues/180/events","html_url":"https://github.com/sphereio/sphere-node-sdk/issues/180","id":188016678,"number":180,"title":"Query params (non-predicate) via object notation","user":{"login":"allcentury","id":5561166,"avatar_url":"https://avatars.githubusercontent.com/u/5561166?v=3","gravatar_id":"","url":"https://api.github.com/users/allcentury","html_url":"https://github.com/allcentury","followers_url":"https://api.github.com/users/allcentury/followers","following_url":"https://api.github.com/users/allcentury/following{/other_user}","gists_url":"https://api.github.com/users/allcentury/gists{/gist_id}","starred_url":"https://api.github.com/users/allcentury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allcentury/subscriptions","organizations_url":"https://api.github.com/users/allcentury/orgs","repos_url":"https://api.github.com/users/allcentury/repos","events_url":"https://api.github.com/users/allcentury/events{/privacy}","received_events_url":"https://api.github.com/users/allcentury/received_events","type":"User","site_admin":false},"labels":[{"id":76481206,"url":"https://api.github.com/repos/sphereio/sphere-node-sdk/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-08T15:10:41Z","updated_at":"2016-11-08T15:10:41Z","closed_at":null,"body":"This is a feature request - please let me know if this is the wrong place to do this.\r\n\r\nIt would be great if the client was able to take query parameters from an object and serialize them as query params rather than the documented `byQueryString` method.\r\n\r\nSomething like this:\r\n\r\n```js\r\nclient.products.withQuery({ offset: 50, limit: 50, sort: \"product.createdAt asc\" }).fetch()\r\n```\r\nwhich would build:\r\n\r\n```js\r\n/products?offset=50&limit=50&sort=product.createdAt%20asc\r\n```\r\n\r\nThat way the client can validate the query params, enforce encoding rules and make the DSL simpler. "}}
{"actor":{"display_login":"allcentury"}}