DBCursor cursor = colls.find(storeInfo);
This statement used to return a DBCursor, but now it returns some mystery interface with no documentation.
I also noticed that I had to make 'colls' into a MongoCollection rather than a DBCollection in order to store the results to begin with.
What is all of this and why was it changed?
On Twitter here.
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/38b08316-ed9d-43f7-bd92-deb76b30fb11%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
for(final DBObject s : cursor){}
MongoClient client = new MongoClient();
MongoDatabase database = client.getDatabase("test");
MongoCollection<DBObject> coll = database.getCollection("test", DBObject.class);coll.insertOne(new BasicDBObject("x", 1));for (DBObject doc : coll.find()) {System.out.println(doc);
}
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/2530e270-382d-4ee9-92ac-bb568bcdf869%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/442dbf58-101c-4056-b13f-7f58663b4005%40googlegroups.com.
Well, I am using intelliJ and am new to it, if that makes a difference.
You received this message because you are subscribed to a topic in the Google Groups "mongodb-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mongodb-user/pcVX84PPwM0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/CAE_jbCLHVo1FJMcmN2O9q6WEMzV52cMuTiRcm%3DONmupZwW06_A%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/CADMdFBPmtOqBpKFaDCk6cNZPW3xsGnK2FgGsvr4D-mma5yx6wA%40mail.gmail.com.