{"action":"created","issue":{"url":"https://api.github.com/repos/neumino/thinky/issues/643","repository_url":"https://api.github.com/repos/neumino/thinky","labels_url":"https://api.github.com/repos/neumino/thinky/issues/643/labels{/name}","comments_url":"https://api.github.com/repos/neumino/thinky/issues/643/comments","events_url":"https://api.github.com/repos/neumino/thinky/issues/643/events","html_url":"https://github.com/neumino/thinky/issues/643","id":288114291,"number":643,"title":"What relation to put for array? - maybe to update your documentation","user":{"login":"goors","id":5320981,"avatar_url":"https://avatars2.githubusercontent.com/u/5320981?v=4","gravatar_id":"","url":"https://api.github.com/users/goors","html_url":"https://github.com/goors","followers_url":"https://api.github.com/users/goors/followers","following_url":"https://api.github.com/users/goors/following{/other_user}","gists_url":"https://api.github.com/users/goors/gists{/gist_id}","starred_url":"https://api.github.com/users/goors/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goors/subscriptions","organizations_url":"https://api.github.com/users/goors/orgs","repos_url":"https://api.github.com/users/goors/repos","events_url":"https://api.github.com/users/goors/events{/privacy}","received_events_url":"https://api.github.com/users/goors/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-01-12T13:10:14Z","updated_at":"2018-05-22T10:08:53Z","closed_at":null,"author_association":"NONE","body":"## Question\r\n\r\nI have some document with:\r\n\r\nname `doc1`\r\n<pre>\r\n{\r\n\"some_key\":\"sample\"\r\n\"ids_to_doc2\":[id1, id2, id3]\r\n}\r\n</pre>\r\nand document with name `doc2`\r\n<pre>\r\n{\r\n\r\n\"name\":\"name1\"\r\n\"id\":\"id1\"\r\n}\r\n\r\n{\r\n\r\n\"name\":\"name2\"\r\n\"id\":\"id2\"\r\n}\r\n\r\n{\r\n\r\n\"name\":\"name3\"\r\n\"id\":\"id3\"\r\n}\r\n</pre>\r\n\r\n1. How to define relation `hasMany ` or `hasAndBelongsToMany `? \r\n2. When doing select who final result will look like (i know this must be some merge)?\r\n\r\nI used Doctrine for some php project and i am using Rethinkdb for 3 years now and this is first time that i am using any ORM for it."},"comment":{"url":"https://api.github.com/repos/neumino/thinky/issues/comments/390937018","html_url":"https://github.com/neumino/thinky/issues/643#issuecomment-390937018","issue_url":"https://api.github.com/repos/neumino/thinky/issues/643","id":390937018,"user":{"login":"wookoouk","id":445964,"avatar_url":"https://avatars3.githubusercontent.com/u/445964?v=4","gravatar_id":"","url":"https://api.github.com/users/wookoouk","html_url":"https://github.com/wookoouk","followers_url":"https://api.github.com/users/wookoouk/followers","following_url":"https://api.github.com/users/wookoouk/following{/other_user}","gists_url":"https://api.github.com/users/wookoouk/gists{/gist_id}","starred_url":"https://api.github.com/users/wookoouk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wookoouk/subscriptions","organizations_url":"https://api.github.com/users/wookoouk/orgs","repos_url":"https://api.github.com/users/wookoouk/repos","events_url":"https://api.github.com/users/wookoouk/events{/privacy}","received_events_url":"https://api.github.com/users/wookoouk/received_events","type":"User","site_admin":false},"created_at":"2018-05-22T10:08:53Z","updated_at":"2018-05-22T10:08:53Z","author_association":"COLLABORATOR","body":"Sorry, I have only just seen this, do you still wish to know?"}}
{"actor":{"display_login":"wookoouk"}}