September 2017
Intermediate to advanced
450 pages
11h 24m
English
| Property | Example | Description |
| $ignore | post.$ignore('content'); | Prevents validation and saving the provided property upon save. |
| $isDefault | post.$isDefault('published'); | Checks whether the provided property is set to its default value. |
| depopulate | post.depopulate('user'); | Takes a populated field and returns it to its unpopulated state as an objectId. |
| equals | post.equals(anotherPost); | Checks whether the document contains the same data as another provided document. |
| execPopulate | let promise = post.populate('user').execPopulate(); | Performs a population query as a promise. |
| get | post.get('html'); | Returns the specified property from the document as a getter. |
| init | post.init(mockPost, function() {}); | Initializes a document. ... |
Read now
Unlock full access