new User()
Promisified Mongoose model for user document.
That means, you need to call findByIdAsync
instead of findById
to use a function that returns a promise.
Properties:
Name | Type | Description |
---|---|---|
id |
string | id of the user |
mask0 |
string | Base64 encoded PNG mask layer 0 |
mask1 |
string | Base64 encoded PNG mask layer 1 |
charParts |
Array.<UserCharPart> | Char parts customized for the user |
facebook |
FacebookUserData | Facebook information of the user |
- Source: