Discussion:
[mongodb-user] mongoc: cursor.hasNext?
Andrea Bravetti
2018-11-27 15:26:26 UTC
Permalink
is there any C function equivalent to cursor.hasNext()
to know if a cursor has data available without actualy
iterate it?

Andrea
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.

For other MongoDB technical support options, see: https://docs.mongodb.com/manual/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 mongodb-***@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/4bd44012-912b-47c3-bef1-79cb260412f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Andrea Bravetti
2018-11-28 10:12:59 UTC
Permalink
just given a look at wire protocol and sniffed cursor.hasNext() from mongo shell and I think the answer is "no"...

Sorry for the useless question however I think that a real hasNext() may be usefull...

Andrea
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.

For other MongoDB technical support options, see: https://docs.mongodb.com/manual/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 mongodb-***@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/422bdd28-c16f-4ba8-82f6-59c45664e526%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...