Friends!
I am using MongoDB in java project via spring-data. I use Repository interfaces to access data in collections. For some processing I need to iterate over all el
you can still use mongoTemplate to access the Collection and simply use DBCursor:
DBCollection collection = mongoTemplate.getCollection("boundary"); DBCursor cursor = collection.find(); while(cursor.hasNext()){ DBObject obj = cursor.next(); Object object = obj.get("polygons"); .. ... }