Wrapper for mongoc_cursor_current().

Fetches the cursors current document or NULL if there has been an error.

Property definitions

mongodb $ NativeMongoCursor :: current
	# Wrapper for `mongoc_cursor_current()`.
	#
	# Fetches the cursors current document or NULL if there has been an error.
	fun current: NativeBSON `{
		// As said in documentation, BSON objects should not be freed manually.
		bson_t* bson = (bson_t*) mongoc_cursor_current(self);
		// Copy BSON so we can let the GC free it automatically.
		return bson_copy(bson);
	`}
lib/mongodb/native_mongodb.nit:535,2--543,3