{"action":"created","issue":{"url":"https://api.github.com/repos/Yomguithereal/baobab/issues/133","labels_url":"https://api.github.com/repos/Yomguithereal/baobab/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/Yomguithereal/baobab/issues/133/comments","events_url":"https://api.github.com/repos/Yomguithereal/baobab/issues/133/events","html_url":"https://github.com/Yomguithereal/baobab/issues/133","id":61834429,"number":133,"title":"Setting values via path array?","user":{"login":"lewisl9029","id":6934200,"avatar_url":"https://avatars.githubusercontent.com/u/6934200?v=3","gravatar_id":"","url":"https://api.github.com/users/lewisl9029","html_url":"https://github.com/lewisl9029","followers_url":"https://api.github.com/users/lewisl9029/followers","following_url":"https://api.github.com/users/lewisl9029/following{/other_user}","gists_url":"https://api.github.com/users/lewisl9029/gists{/gist_id}","starred_url":"https://api.github.com/users/lewisl9029/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lewisl9029/subscriptions","organizations_url":"https://api.github.com/users/lewisl9029/orgs","repos_url":"https://api.github.com/users/lewisl9029/repos","events_url":"https://api.github.com/users/lewisl9029/events{/privacy}","received_events_url":"https://api.github.com/users/lewisl9029/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Yomguithereal/baobab/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Yomguithereal/baobab/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-03-15T15:05:43Z","updated_at":"2015-03-25T06:01:45Z","closed_at":null,"body":"Hi,\r\n\r\nI saw in the readme that you can create a cursor by passing in a path array:\r\n```js\r\nvar colorsCursor = tree.select(['palette', 'colors']);\r\n```\r\n\r\nSo for some reason I ended up assuming that you can also set values by passing in a path array like so:\r\n```js\r\ntree.set(['palette', 'colors'], 'blue');\r\n```\r\n\r\nHowever this doesn't seem to be the case:\r\n```js\r\ntree.set(['palette', 'colors'], 'blue');\r\ntree.commit();\r\ntree.get();\r\n//Object {palette,colors: \"blue\"}\r\n```\r\n\r\nCalling set with a path array actually leads to Baobab setting the value at the path of a comma-joined string of the path array, which is quite odd.\r\n\r\nThe workaround I'm using right now is calling select with a path array and then edit to change the value, but I feel being able to pass in a path array to set would be a more intuitive way to do this.\r\n\r\nThoughts?\r\n\r\nThank you for making this amazing library by the way! =)"},"comment":{"url":"https://api.github.com/repos/Yomguithereal/baobab/issues/comments/85861520","html_url":"https://github.com/Yomguithereal/baobab/issues/133#issuecomment-85861520","issue_url":"https://api.github.com/repos/Yomguithereal/baobab/issues/133","id":85861520,"user":{"login":"christianalfoni","id":3956929,"avatar_url":"https://avatars.githubusercontent.com/u/3956929?v=3","gravatar_id":"","url":"https://api.github.com/users/christianalfoni","html_url":"https://github.com/christianalfoni","followers_url":"https://api.github.com/users/christianalfoni/followers","following_url":"https://api.github.com/users/christianalfoni/following{/other_user}","gists_url":"https://api.github.com/users/christianalfoni/gists{/gist_id}","starred_url":"https://api.github.com/users/christianalfoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianalfoni/subscriptions","organizations_url":"https://api.github.com/users/christianalfoni/orgs","repos_url":"https://api.github.com/users/christianalfoni/repos","events_url":"https://api.github.com/users/christianalfoni/events{/privacy}","received_events_url":"https://api.github.com/users/christianalfoni/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T06:01:45Z","updated_at":"2015-03-25T06:01:45Z","body":"Btw, I suppose also the \"get\" method will get this feature? As you do no really want to create cursors when just fetching some data? Or does it have it already?"}}