4strid / nekodb

Tiny ODM for MongoDB/NeDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't perform type coersion on optional fields

4strid opened this issue · comments

While I could accomplish this with the planned rewrite of typeclass.check, it may be better to do a sort of hacky interim solution

Don't forget to add a type coercion section to the readme to explain how this works. We're going to coerce to the first type in the option (with a special case for null)