I have some fields in mongodb such as name as string, id as integer, address as arraylist and so on. I need name as "what data type". I need to get the name datatype.
This is my coding config the netbeans and MongoDB
MongoClient mongoClient = new MongoClient(mongopath);
DB db = mongoClient.getDB(dbname);
DBCollection coll = db.getCollection(dbname);
DBCursor cursor = coll.find();
Can someone explain this?