I\'m looking for ways to validate that data being inserted into MongoDB matches a schema, e.g. has all the required fields and correct data types. I know Mongo itself is sc
Not sure if you're still looking but an object document mapper (ODM) would do the trick.
I have checked out both Morphia or Spring Data - MongoDB and either would take care of your type safety concerns since they would map your documents directly to Java classes.