Meteor.publish('notes', function (text) {
    return Notes.find({
        $or: [
            {text: { $regex: text }}
        ]
    });
});

Notes.allow({
    insert: function(userId, doc){
        return true;
    },
    update:  function(userId, doc, fieldNames, modifier){
        return false;
    },
    remove:  function(userId, doc){
        return true;
    }
});

Notes.deny({
    insert: function (userId, doc) {
        return (typeof doc.text === 'undefined' || doc.text.length < 3);
    }
});
@@ -432,16 +432,29 @@
 return (
+%0A            
 typeof d
@@ -476,16 +476,28 @@
 defined'
+%0A           
  %7C%7C doc.
@@ -511,16 +511,68 @@
 ngth %3C 3
+%0A            %7C%7C !(doc.date instanceof Date)%0A        
 );%0A    %7D

Update notes-validation