{"action":"created","issue":{"url":"https://api.github.com/repos/Netflix/falcor/issues/588","labels_url":"https://api.github.com/repos/Netflix/falcor/issues/588/labels{/name}","comments_url":"https://api.github.com/repos/Netflix/falcor/issues/588/comments","events_url":"https://api.github.com/repos/Netflix/falcor/issues/588/events","html_url":"https://github.com/Netflix/falcor/issues/588","id":113167531,"number":588,"title":"Model get confusion","user":{"login":"Jayshua","id":1654103,"avatar_url":"https://avatars.githubusercontent.com/u/1654103?v=3","gravatar_id":"","url":"https://api.github.com/users/Jayshua","html_url":"https://github.com/Jayshua","followers_url":"https://api.github.com/users/Jayshua/followers","following_url":"https://api.github.com/users/Jayshua/following{/other_user}","gists_url":"https://api.github.com/users/Jayshua/gists{/gist_id}","starred_url":"https://api.github.com/users/Jayshua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jayshua/subscriptions","organizations_url":"https://api.github.com/users/Jayshua/orgs","repos_url":"https://api.github.com/users/Jayshua/repos","events_url":"https://api.github.com/users/Jayshua/events{/privacy}","received_events_url":"https://api.github.com/users/Jayshua/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-24T15:34:02Z","updated_at":"2015-10-24T16:41:59Z","closed_at":null,"body":"Maybe I'm misunderstanding how models work, but shouldn't I be able to call\r\n```\r\nmodel.get([\"contacts\", [0,2], [\"address\", \"city\", \"state\"]]).then(...)\r\n```\r\nAnd get back all three keys? When I try to I get `Error: Paths must be simple paths`.\r\n\r\nAlso the docs seem to say that I should be able to call model.get with a list of paths to get. Like\r\n```\r\nmodel.get(\"contacts[0].address\", \"contacts[0].city\").then(...)\r\n```\r\nBut this only returns the first path. (And appears to only issue an http request for the first as well) Am I missing something?\r\n\r\n(Also, I'm using falcor-http-datasource.)"},"comment":{"url":"https://api.github.com/repos/Netflix/falcor/issues/comments/150832446","html_url":"https://github.com/Netflix/falcor/issues/588#issuecomment-150832446","issue_url":"https://api.github.com/repos/Netflix/falcor/issues/588","id":150832446,"user":{"login":"falcor-build","id":11634397,"avatar_url":"https://avatars.githubusercontent.com/u/11634397?v=3","gravatar_id":"","url":"https://api.github.com/users/falcor-build","html_url":"https://github.com/falcor-build","followers_url":"https://api.github.com/users/falcor-build/followers","following_url":"https://api.github.com/users/falcor-build/following{/other_user}","gists_url":"https://api.github.com/users/falcor-build/gists{/gist_id}","starred_url":"https://api.github.com/users/falcor-build/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falcor-build/subscriptions","organizations_url":"https://api.github.com/users/falcor-build/orgs","repos_url":"https://api.github.com/users/falcor-build/repos","events_url":"https://api.github.com/users/falcor-build/events{/privacy}","received_events_url":"https://api.github.com/users/falcor-build/received_events","type":"User","site_admin":false},"created_at":"2015-10-24T16:41:59Z","updated_at":"2015-10-24T16:41:59Z","body":"Based on that error,  it looks like you are calling getValue. Are you sure\nyou are not calling that method?\n\nOn Sat, Oct 24, 2015, 8:34 AM Jayshua <notifications@github.com> wrote:\n\n> Maybe I'm misunderstanding how models work, but shouldn't I be able to call\n>\n> model.get([\"contacts\", [0,2], [\"address\", \"city\", \"state\"]]).then(...)\n>\n> And get back all three keys? When I try to I get Error: Paths must be\n> simple paths.\n>\n> Also the docs seem to say that I should be able to call model.get with a\n> list of paths to get. Like\n>\n> model.get(\"contacts[0].address\", \"contacts[0].city\").then(...)\n>\n> But this only returns the first path. (And appears to only issue an http\n> request for the first as well) Am I missing something?\n>\n> (Also, I'm using falcor-http-datasource.)\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/Netflix/falcor/issues/588>.\n>\n> --\n> You received this message because you are subscribed to the Google Groups\n> \"Falcor\" group.\n> To unsubscribe from this group and stop receiving emails from it, send an\n> email to falcor+unsubscribe@netflix.com.\n> To post to this group, send email to falcor@netflix.com.\n> To view this discussion on the web visit\n> https://groups.google.com/a/netflix.com/d/msgid/falcor/Netflix/falcor/issues/588%40github.com\n> <https://groups.google.com/a/netflix.com/d/msgid/falcor/Netflix/falcor/issues/588%40github.com?utm_medium=email&utm_source=footer>\n> .\n>\n"}}