4 ms·
> I'd rather not warp my whole project around a typing system if I don't need to. This sounds to me like MongoDB advocates like "psh! who needs a schema! don't
by crabmusket 4y ago
> I'd rather not warp my whole project around a typing system if I don't need to.
This sounds to me like MongoDB advocates like "psh! who needs a schema! don't slow me down, I'll just dump JSON into the database however I like." The types exist whether you write them down or not.
I agree with you that TS might not be great for everyone and every use case. But maybe you should just use `any` some more!
- jd_mongodb 4y agoEvery field in a MongoDB document (we encoded documents in BSON at the driver level) is typed and you can apply a schema to any collection if you choose to do so.