{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/immutable-js/issues/407","repository_url":"https://api.github.com/repos/facebook/immutable-js","labels_url":"https://api.github.com/repos/facebook/immutable-js/issues/407/labels{/name}","comments_url":"https://api.github.com/repos/facebook/immutable-js/issues/407/comments","events_url":"https://api.github.com/repos/facebook/immutable-js/issues/407/events","html_url":"https://github.com/facebook/immutable-js/issues/407","id":64149589,"number":407,"title":"Collection records","user":{"login":"Gozala","id":21236,"avatar_url":"https://avatars1.githubusercontent.com/u/21236?v=4","gravatar_id":"","url":"https://api.github.com/users/Gozala","html_url":"https://github.com/Gozala","followers_url":"https://api.github.com/users/Gozala/followers","following_url":"https://api.github.com/users/Gozala/following{/other_user}","gists_url":"https://api.github.com/users/Gozala/gists{/gist_id}","starred_url":"https://api.github.com/users/Gozala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gozala/subscriptions","organizations_url":"https://api.github.com/users/Gozala/orgs","repos_url":"https://api.github.com/users/Gozala/repos","events_url":"https://api.github.com/users/Gozala/events{/privacy}","received_events_url":"https://api.github.com/users/Gozala/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":28,"created_at":"2015-03-25T02:08:32Z","updated_at":"2017-10-04T22:39:37Z","closed_at":"2017-10-04T22:39:37Z","author_association":"NONE","body":"I've being using Records for modelling application state and soon enough run into a case where I'd like to specify a record field that must be a collection of other Records. Something along these lines:\n\n``` js\nconst Suggestion = Record({ url: '', title: '' })\n\nconst Completer = Record({\n  selected: -1\n  entries: List()\n})\n```\n\nHere I'm unable to specify that `Completer` entries should be a `Suggestion` records. I would love if there was a way to declare that somewhat along these lines:\n\n``` js\nconst Suggestion = Record({ url: '', title: '' })\n\nconst Completer = Record({\n  selected: -1\n  entries: Suggestion.List()\n})\n```\n"}}
{"actor":{"display_login":"leebyron"}}