This is the error message caused by running $ node thinky-schema-example.js
:
Possibly unhandled Document failed validation: Value for [createdAt] must be a string or null.
at Object.looseType (/Users/Ben/js/thinky-schema-example/node_modules/thinky/lib/util.js:304:11)
at TypeString.validate (/Users/Ben/js/thinky-schema-example/node_modules/thinky/lib/type/string.js:318:12)
at /Users/Ben/js/thinky-schema-example/node_modules/thinky/lib/type/object.js:136:19
at Object.loopKeys (/Users/Ben/js/thinky-schema-example/node_modules/thinky/lib/util.js:203:16)
at TypeObject.validate (/Users/Ben/js/thinky-schema-example/node_modules/thinky/lib/type/object.js:135:10)
at model.Document._validateHook (/Users/Ben/js/thinky-schema-example/node_modules/thinky/lib/document.js:256:28)
at _syncHook (/Users/Ben/js/thinky-schema-example/node_modules/thinky/lib/util.js:129:19)
at Object.hook (/Users/Ben/js/thinky-schema-example/node_modules/thinky/lib/util.js:109:12)
at model.Document.validate (/Users/Ben/js/thinky-schema-example/node_modules/thinky/lib/document.js:201:15)
at /Users/Ben/js/thinky-schema-example/node_modules/thinky/lib/document.js:828:26