Const
Utility schema fields for Mongo collections in Meteor. Provides common fields like createdAt, createdBy, updatedAt, and updatedBy with automatic value assignment using SimpleSchema.
createdAt
createdBy
updatedAt
updatedBy
SimpleSchema
const MySchema = new SimpleSchema({ createdAt: schemaTools.createdAt(), createdBy: schemaTools.createdBy(), createdByName: schemaTools.createdByName(), updatedAt: schemaTools.updatedAt(), updatedBy: schemaTools.updatedBy(), updatedByName: schemaTools.updatedByName(),}); Copy
const MySchema = new SimpleSchema({ createdAt: schemaTools.createdAt(), createdBy: schemaTools.createdBy(), createdByName: schemaTools.createdByName(), updatedAt: schemaTools.updatedAt(), updatedBy: schemaTools.updatedBy(), updatedByName: schemaTools.updatedByName(),});
Utility schema fields for Mongo collections in Meteor. Provides common fields like
createdAt,createdBy,updatedAt, andupdatedBywith automatic value assignment usingSimpleSchema.