Edit This Page

Behavior Usage

var Posts = db.createCollection({
  behaviors: [
    TimestampBehavior,
    AnotherBehavior
  ]
});

With custom configuration:

var Posts = db.createCollection({
  behaviors: [
    {
      'class': TimestampBehavior,
      options: {
        timezone: 'UTC'
      }
    },
    AnotherBehavior
  ]
});