# Wrapper for `mongoc_cursor_next()`.
#
# This function shall iterate the underlying cursor, setting `current` to the next
# document.
#
# This function is a blocking function.
funnext:Bool`{
const bson_t *doc;
return mongoc_cursor_next(self, &doc);
`}