How to use the simpl-schema.debug function in simpl-schema

To help you get started, we’ve selected a few simpl-schema examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kjetilhau / meteor-skeleton / imports / startup / both / config.js View on Github external
import SimpleSchema from "simpl-schema"

// ***************************************************************
// Config for both client and server
// ***************************************************************

// Extra logging for SimpleSchema. Turn off in production!
SimpleSchema.debug = true
github vazco / meteor-universe-collection / tests / schema_tests.js View on Github external
import SimpleSchema from 'simpl-schema';

SimpleSchema.debug = true;
var schema = {
    title: {type: String},
    createdAt: {
        type: Date,
        autoValue: function () {
            if (this.isInsert) {
                return this.value || new Date();
            }
        },
        optional: true
    },
    updatedAt: {
        type: Date,
        autoValue: function () {
            if (this.isUpdate) {
                return new Date();
github ThaumRystra / DiceCloud / app / imports / server / config / simpleSchemaDebug.js View on Github external
import SimpleSchema from 'simpl-schema';

if (Meteor.isDevelopment){
  SimpleSchema.debug = true
}