Wrapper for mongoc_collection_update(MONGOC_UPDATE_MULTI_UPDATE).

This function shall update documents in the collection that match selector.

Property definitions

mongodb $ NativeMongoCollection :: update_all
	# Wrapper for `mongoc_collection_update(MONGOC_UPDATE_MULTI_UPDATE)`.
	#
	# This function shall update documents in the collection that match `selector`.
	fun update_all(selector, update: NativeBSON): Bool import set_mongoc_error `{
		bson_error_t error;
		if(!mongoc_collection_update(self, MONGOC_UPDATE_MULTI_UPDATE, selector, update, NULL, &error)) {
			NativeMongoCollection_set_mongoc_error(self, &error);
			return false;
		}
		return true;
	`}
lib/mongodb/native_mongodb.nit:402,2--412,3