To extract common code from a collection
TestSchema = new Mongo.Collection('test')
TestSchema.includeCollectionMixins(exampleMixin, exampleMixin1, so on..)
exampleMixin = {
schema: (collection)->
new SimpleSchema
"sample":
type: String
#add methods to document's object
helpers:
mixinHelperMethod: -> true
#add methods to collection's object
collectionHelpers:
mixinCollectionHelperMethod: -> true
}