== RxJava 2 API

The Mongo client provides an Rxified version of the original API.

=== Creating an Rxified client

To create an Rxified Mongo client, make sure to import the {@link io.vertx.reactivex.ext.mongo.MongoClient} class.
Then use one of the `create` methods to get an instance:

[source,java]
----
{@link examples.RxMongoClientExamples#createClient(io.vertx.reactivex.core.Vertx,io.vertx.core.json.JsonObject)}
----

=== Finding documents in batches

A {@link io.vertx.reactivex.core.streams.ReadStream} can be converted to a {@link io.reactivex.Flowable}, which is handy when you have to deal with large data sets:

[source,java]
----
{@link examples.RxMongoClientExamples#findBatch(io.vertx.reactivex.ext.mongo.MongoClient)}
----
