Guy Royse
Guy Royse
This is still being developed and has been asked for dozens of times. I'm closing this as a duplicate.
I was envisioning something like this for embedded/related entities.
You're right and this bugged me too. I thought about it for a good long while and chose not to use decorators because a) they are still an experimental feature...
I agree with point B. I suspect point A will be resolved by the time I get to adding this feature. ;) I'll add it to the backlog.
You can't, but that is an awesome idea! Keep this open and I'll add it to the backlog.
This has been updated.
That's a good idea. I'd like to add all the types! How do you see this working with JavaScript? I guess if they are just strings then they could be...
I see it looking like this. ```javascript repo.search().return.allJson() repo.search().return.firstJson() ...etc. ```
Thinking this: ```javascript const schema = new Schema(Album, { artist: { type: 'string', default: 'Mushroomhead' }, year: { type: 'number', default: 2020 } } ```
This has been asked for in several other issues and I am actively working on it.