Defining a Simple Schema for mongo's ObjectId
Is there a way to define a simple
E.g., in io-ts using
I'm not sure what would be the equivalent in schema
Schema with some success/failure like you could do in io-ts?E.g., in io-ts using
Decoder I could define a Decoder<unknown, ObjectId> in such a fashion:I'm not sure what would be the equivalent in schema
