nk
05/31/2019, 7:07 PMdata class User(name: String, pass: String, email: String, etc...) and then an update method which would take a Partial User so that you'd only have to supply a subset of the fields fun update(user: Partial<User>): User {...}. Should I just create a new type for this? Such as data class PartialUser(name?: String = null, pass?: String = null, email: String = null, etc...).serebit
05/31/2019, 7:52 PMnk
05/31/2019, 9:33 PMIan White
05/31/2019, 11:34 PM@PartialDataObjects(["Partial","Create","Update"]) annotation to a data object X and it will create PartialX, CreateX, UpdateX data objects for you. it’s not totally ready for public consumption but i’ve found it super handy for my own projects if you’re interested: https://github.com/stardogventures/stardao/tree/master/stardao-kotlin-partial