I would like to know if there is any method to "force" the type of variable within MongoDB in Java .
I need to insert a Document
with certain data, example:
Document doc = new Document();
// Forzar que guarde Rut como Integer siendo que recibe un Strig
doc.append("RUT","123456789");
Does anyone know anything?
Thanks!