You can see examples of what I mean here: https://gist.github.com/rjurney/6c4dac6f328b3cef936a import java.io.FileInputStream import java.nio.ByteBuffer import java.nio.channels.FileChannel import com.mongodb.* import org.joda.time.DateTime import org.joda.time.format.ISODateTimeFormat import org.bson.Document // Get stuff from MongoDB mongoClient = new MongoClient() database = mongoClient.getDatabase("relato") // Create nodes from companies companies = database.getCollection("companies") companies_cursor = companies.find().iterator() try { while (companies_cursor.hasNext()) { record = companies_cursor.next() […]
The post Java MongoDB Driver in Groovy misses records on find() that turn up on find({field: known_value}) appeared first on BlogoSfera.