{"action":"created","issue":{"url":"https://api.github.com/repos/luin/ioredis/issues/218","labels_url":"https://api.github.com/repos/luin/ioredis/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/luin/ioredis/issues/218/comments","events_url":"https://api.github.com/repos/luin/ioredis/issues/218/events","html_url":"https://github.com/luin/ioredis/issues/218","id":123142161,"number":218,"title":"Fails to transform map argument for redis.msetnx({a:123,b:345})","user":{"login":"garkin","id":422774,"avatar_url":"https://avatars.githubusercontent.com/u/422774?v=3","gravatar_id":"","url":"https://api.github.com/users/garkin","html_url":"https://github.com/garkin","followers_url":"https://api.github.com/users/garkin/followers","following_url":"https://api.github.com/users/garkin/following{/other_user}","gists_url":"https://api.github.com/users/garkin/gists{/gist_id}","starred_url":"https://api.github.com/users/garkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garkin/subscriptions","organizations_url":"https://api.github.com/users/garkin/orgs","repos_url":"https://api.github.com/users/garkin/repos","events_url":"https://api.github.com/users/garkin/events{/privacy}","received_events_url":"https://api.github.com/users/garkin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-20T07:59:18Z","updated_at":"2015-12-20T09:40:03Z","closed_at":null,"body":"Fails to transform map argument for `redis.msetnx({a:123,b:345})`\r\nSomehow related to https://github.com/luin/ioredis/issues/217\r\n\r\nBefore `this.initPromise()`[#](https://github.com/luin/ioredis/blob/05a61e1c3eecc829a8f609ca7eeb1fa495573a26/lib/command.js#L50):\r\n![image](https://cloud.githubusercontent.com/assets/422774/11917049/6a037298-a721-11e5-9dcf-3964569293f8.png)\r\n\r\n\r\nAfter:\r\n![image](https://cloud.githubusercontent.com/assets/422774/11917050/6da19a56-a721-11e5-840d-f6e385ff0337.png)"},"comment":{"url":"https://api.github.com/repos/luin/ioredis/issues/comments/166099287","html_url":"https://github.com/luin/ioredis/issues/218#issuecomment-166099287","issue_url":"https://api.github.com/repos/luin/ioredis/issues/218","id":166099287,"user":{"login":"luin","id":635902,"avatar_url":"https://avatars.githubusercontent.com/u/635902?v=3","gravatar_id":"","url":"https://api.github.com/users/luin","html_url":"https://github.com/luin","followers_url":"https://api.github.com/users/luin/followers","following_url":"https://api.github.com/users/luin/following{/other_user}","gists_url":"https://api.github.com/users/luin/gists{/gist_id}","starred_url":"https://api.github.com/users/luin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luin/subscriptions","organizations_url":"https://api.github.com/users/luin/orgs","repos_url":"https://api.github.com/users/luin/repos","events_url":"https://api.github.com/users/luin/events{/privacy}","received_events_url":"https://api.github.com/users/luin/received_events","type":"User","site_admin":false},"created_at":"2015-12-20T09:40:03Z","updated_at":"2015-12-20T09:40:03Z","body":"There's no argument transformer for `msetnx` yet. The built-in ones can be found here: https://github.com/luin/ioredis/blob/master/lib/command.js#L302-L335, and you can define one yourself for `msetnx`.\r\n\r\nHowever, I think we should have a built-in transformer for `msetnx`."}}