Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 623 Bytes

File metadata and controls

25 lines (20 loc) · 623 Bytes

Meta behavior for Meteor Astronomy

The meta behavior adds 4 fields that store information about document's creation and update dates and users.

hasCreatedAtField: true,
hasCreatedByField: true,
hasUpdatedAtField: true,
hasUpdatedByField: true,
createdAtFieldName: 'createdAt',
createdByFieldName: 'createdBy',
updatedAtFieldName: 'updatedAt',
updatedByFieldName: 'updatedBy'

Simple Usage:

behaviors: {
  meta: {}
}

Note: If any of the fields are already present, they will not be set again.

A detailed information about behavior can be found here.