{"action":"created","issue":{"url":"https://api.github.com/repos/neumino/thinky/issues/563","repository_url":"https://api.github.com/repos/neumino/thinky","labels_url":"https://api.github.com/repos/neumino/thinky/issues/563/labels{/name}","comments_url":"https://api.github.com/repos/neumino/thinky/issues/563/comments","events_url":"https://api.github.com/repos/neumino/thinky/issues/563/events","html_url":"https://github.com/neumino/thinky/issues/563","id":176271751,"number":563,"title":"Declare a field in a model that is stored but can't be provided","user":{"login":"nodesocket","id":523312,"avatar_url":"https://avatars.githubusercontent.com/u/523312?v=3","gravatar_id":"","url":"https://api.github.com/users/nodesocket","html_url":"https://github.com/nodesocket","followers_url":"https://api.github.com/users/nodesocket/followers","following_url":"https://api.github.com/users/nodesocket/following{/other_user}","gists_url":"https://api.github.com/users/nodesocket/gists{/gist_id}","starred_url":"https://api.github.com/users/nodesocket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodesocket/subscriptions","organizations_url":"https://api.github.com/users/nodesocket/orgs","repos_url":"https://api.github.com/users/nodesocket/repos","events_url":"https://api.github.com/users/nodesocket/events{/privacy}","received_events_url":"https://api.github.com/users/nodesocket/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-11T23:25:16Z","updated_at":"2016-09-14T02:29:29Z","closed_at":null,"body":"Is it possible to declare a field in a model that is stored in RethinkDB but can't be provided into the model constructor? An example is `id`. I don't want to allow passing `id` into a model, instead I want to set a `default()` that is automatically generated.\r\n\r\nCurrently I have:\r\n\r\n````javascript\r\nid: type.string().uuid(4).default(thinky.r.uuid()),\r\n````\r\n\r\nHowerver this allows providing `id` when creating the model, which is what I want to prevent. It should throw a `ValidationError`."},"comment":{"url":"https://api.github.com/repos/neumino/thinky/issues/comments/246887508","html_url":"https://github.com/neumino/thinky/issues/563#issuecomment-246887508","issue_url":"https://api.github.com/repos/neumino/thinky/issues/563","id":246887508,"user":{"login":"neumino","id":1461947,"avatar_url":"https://avatars.githubusercontent.com/u/1461947?v=3","gravatar_id":"","url":"https://api.github.com/users/neumino","html_url":"https://github.com/neumino","followers_url":"https://api.github.com/users/neumino/followers","following_url":"https://api.github.com/users/neumino/following{/other_user}","gists_url":"https://api.github.com/users/neumino/gists{/gist_id}","starred_url":"https://api.github.com/users/neumino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neumino/subscriptions","organizations_url":"https://api.github.com/users/neumino/orgs","repos_url":"https://api.github.com/users/neumino/repos","events_url":"https://api.github.com/users/neumino/events{/privacy}","received_events_url":"https://api.github.com/users/neumino/received_events","type":"User","site_admin":false},"created_at":"2016-09-14T02:29:29Z","updated_at":"2016-09-14T02:29:29Z","body":"Hum, no that's not possible at the moment. It's an interesting feature though."}}
{"actor":{"display_login":"neumino"}}