This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Post.find 2, (post) -> # Loads entity from /posts/2 | |
| post('title') # Returns 'Test post' | |
| post('title', 'New and better title!') # Sets new title value | |
| post('title') # Returns 'New and better title!' | |
| post.reload -> # Reloads fields from server | |
| post('title') # Returns 'Test post' | |
| post.delete -> console.log 'Deleted!' # Deletes fetched entity (DELETE /posts/2) |