aarondfrancis / vue-model

Model component for Vue.js
MIT License
857 stars 42 forks source link

create() action question #7

Closed martinhearn closed 6 years ago

martinhearn commented 8 years ago

Hi

Thanks for a useful plugin.

This is more of a usage question than an issue...

I was wondering how do you go about converting a new object to an update object? At the moment after issuing a POST I'm returning the object (with a unique id) which converts it to an update() PATCH object. I can only do this by setting 'apply:true' on the create action when registering each model.

I'm asking as I noticed the create action doesn't apply:true by default. So that's made me think maybe there is a better way of doing this?

Thanks!

Martin