Class: Message

Message

Class that represents users' private one-to-one messages. Usually used from User class. This class is an ancestor of mongoose active record object, described here http://mongoosejs.com/docs/documents.html, http://mongoosejs.com/docs/queries.html

Note: before saving message have all special symbols escaped.

Constructor

new Message()

Properties:
Name Type Description
_id ObjectId
id string
to User
from User
createdAt Date
message string
ago Number