{"action":"closed","issue":{"url":"https://api.github.com/repos/graphcool/framework/issues/1041","repository_url":"https://api.github.com/repos/graphcool/framework","labels_url":"https://api.github.com/repos/graphcool/framework/issues/1041/labels{/name}","comments_url":"https://api.github.com/repos/graphcool/framework/issues/1041/comments","events_url":"https://api.github.com/repos/graphcool/framework/issues/1041/events","html_url":"https://github.com/graphcool/framework/issues/1041","id":268641092,"number":1041,"title":"How to create array field of the whole model","user":{"login":"ShenAdrada","id":26157352,"avatar_url":"https://avatars2.githubusercontent.com/u/26157352?v=4","gravatar_id":"","url":"https://api.github.com/users/ShenAdrada","html_url":"https://github.com/ShenAdrada","followers_url":"https://api.github.com/users/ShenAdrada/followers","following_url":"https://api.github.com/users/ShenAdrada/following{/other_user}","gists_url":"https://api.github.com/users/ShenAdrada/gists{/gist_id}","starred_url":"https://api.github.com/users/ShenAdrada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShenAdrada/subscriptions","organizations_url":"https://api.github.com/users/ShenAdrada/orgs","repos_url":"https://api.github.com/users/ShenAdrada/repos","events_url":"https://api.github.com/users/ShenAdrada/events{/privacy}","received_events_url":"https://api.github.com/users/ShenAdrada/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-26T06:15:20Z","updated_at":"2017-10-28T06:50:42Z","closed_at":"2017-10-28T06:50:42Z","author_association":"NONE","body":"Hi I'm a newbie in graphcool, can I ask on how to create an array field of the whole model. I need to create types similar to this: (notice e.g. emails: Array<EmailProps>)\r\n\r\n```\r\nexport interface EmailProps {\r\n    label?: string;\r\n    email?: string;\r\n}\r\n\r\nexport interface PhoneProps {\r\n    label?: string;\r\n    phone?: string;\r\n}\r\n\r\nexport interface AddressProps {\r\n    label?: string;\r\n    address?: string;\r\n}\r\n\r\nexport interface PartyProps {\r\n    name?: string;\r\n    emails?: Array<EmailProps>;\r\n    phones?: Array<PhoneProps>;\r\n    addresses?: Array<AddressProps>;\r\n}\r\n```\r\n\r\nand I'm using it like this (using props PartyProps)\r\n```\r\nemailsList = this.props.emails.map ((em, idx) => {\r\n                return (\r\n                    <EmailDisplay\r\n                        key={'A' + idx.toString()}\r\n                        label={em.label}\r\n                        value={em.email}\r\n                    />\r\n                );\r\n            });\r\n```\r\n"}}
{"actor":{"display_login":"marktani"}}