Permalink
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (23 sloc) 340 Bytes

Behavior Usage

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

With custom configuration:

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