neumino / thinky

JavaScript ORM for RethinkDB
http://justonepixel.com/thinky/
Other
1.12k stars 128 forks source link

Does type.string().min(1) similar to "not null"? #633

Closed Extarys closed 7 years ago

Extarys commented 7 years ago

Does type.string().min(1) similar to "not null"?

If so I could make a PR to add that little file in there.

(Not tested on my side yet)

gjuchault commented 7 years ago

Nope, you can have numbers and dates and objects and arrays

type.any().allowNull(false) is

Extarys commented 7 years ago

Thanks, I didn'T see it in the docs awesome