Closed plexus closed 7 years ago
The current way of specifying hydration keys is rather unwieldy, so I came up with this
(defmodel Video :videos models/IModel (hydration-keys [_] [:video :preview_video]))
I have a working patch (see this gist). Happy to submit it, just wanted to check first if this is something you'd be interested in.
@plexus, sure. There's no reason not to support something like this
If you submitted a PR do you think you could update the dox as well to include both ways of doing things?
ok, I can do that.
The current way of specifying hydration keys is rather unwieldy, so I came up with this
I have a working patch (see this gist). Happy to submit it, just wanted to check first if this is something you'd be interested in.