UNPKG

sarala

Version:

Javascript library to communicate with RESTful API built following JSON API specification. inspired by Laravel’s Eloquent.

10 lines (6 loc) 263 B
## Clone Sometimes you may need to make a clone from a model instance. You can easily make a deep clone instance by calling models `clone` method. ```javascript let postEight = await post.with(['tags', 'author']).find(8) let colnedPost = postEight.clone() ```