{"action":"created","issue":{"url":"https://api.github.com/repos/kclay/rethink-scala/issues/23","labels_url":"https://api.github.com/repos/kclay/rethink-scala/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/kclay/rethink-scala/issues/23/comments","events_url":"https://api.github.com/repos/kclay/rethink-scala/issues/23/events","html_url":"https://github.com/kclay/rethink-scala/issues/23","id":55570362,"number":23,"title":"Support class polymorphism","user":{"login":"dainkaplan","id":594193,"avatar_url":"https://avatars.githubusercontent.com/u/594193?v=3","gravatar_id":"","url":"https://api.github.com/users/dainkaplan","html_url":"https://github.com/dainkaplan","followers_url":"https://api.github.com/users/dainkaplan/followers","following_url":"https://api.github.com/users/dainkaplan/following{/other_user}","gists_url":"https://api.github.com/users/dainkaplan/gists{/gist_id}","starred_url":"https://api.github.com/users/dainkaplan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dainkaplan/subscriptions","organizations_url":"https://api.github.com/users/dainkaplan/orgs","repos_url":"https://api.github.com/users/dainkaplan/repos","events_url":"https://api.github.com/users/dainkaplan/events{/privacy}","received_events_url":"https://api.github.com/users/dainkaplan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-27T03:09:40Z","updated_at":"2015-03-02T14:08:35Z","closed_at":null,"body":"It would be nice to have an easy way to use class polymorphism in collection fields within documents, e.g. `List[Bug]` containing `Spider` and `Worm`, even if custom serialisers are needed to accomplish it. Looks like this should be doable since you're using Jackson to do the JS serialisation. Glanced at the serialisation code but it wasn't readily apparent (lots of commented out code / unused stuff). I will gladly create a test case that does this if you could provide some pointers!"},"comment":{"url":"https://api.github.com/repos/kclay/rethink-scala/issues/comments/76717026","html_url":"https://github.com/kclay/rethink-scala/issues/23#issuecomment-76717026","issue_url":"https://api.github.com/repos/kclay/rethink-scala/issues/23","id":76717026,"user":{"login":"kclay","id":744419,"avatar_url":"https://avatars.githubusercontent.com/u/744419?v=3","gravatar_id":"","url":"https://api.github.com/users/kclay","html_url":"https://github.com/kclay","followers_url":"https://api.github.com/users/kclay/followers","following_url":"https://api.github.com/users/kclay/following{/other_user}","gists_url":"https://api.github.com/users/kclay/gists{/gist_id}","starred_url":"https://api.github.com/users/kclay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kclay/subscriptions","organizations_url":"https://api.github.com/users/kclay/orgs","repos_url":"https://api.github.com/users/kclay/repos","events_url":"https://api.github.com/users/kclay/events{/privacy}","received_events_url":"https://api.github.com/users/kclay/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T14:08:35Z","updated_at":"2015-03-02T14:08:35Z","body":"I havn't tested this out yet but in the 0.4.7-SNAPSHOT I addressed the problem of classes not extending Document having their values set to null #19. \r\n\r\nIf you could give that a try and let me know if that works for you."}}