Registry / database / vertx-mongo-client

vertx-mongo-client

JSON →
library5.0.8javamavenunverified

Reactive MongoDB client for Vert.x applications.

<dependency> <groupId>io.vertx</groupId> <artifactId>vertx-mongo-client</artifactId> <version>5.0.8</version> </dependency>
INSTALL
IMPORT
SIG · VERTX-MONGO-CLIENT
V
vertx-mongo-client
databasejavav5.0.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MongoClient
io.vertx.ext.mongo.MongoClient

Query MongoDB using Vert.x Mongo Client

import io.vertx.ext.mongo.MongoClient; import io.vertx.core.Vertx; public class Example { public static void main(String[] args) { Vertx vertx = Vertx.vertx(); MongoClient client = MongoClient.createShared(vertx, "mongodb://localhost:27017"); client.findOne("users", new JsonObject().put("name", "John"), res -> { if (res.succeeded()) { System.out.println(res.result()); } }); } }
Debug
Known issues
breakingVert.x 5 API may differ from Vert.x 4; check migration guide.
fix
Refer to Vert.x 5 documentation for breaking changes.
affects: >=5.0.0
Upgrade
Version history
5.0.8latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
16
Meta
1
OpenAI (training)
1
Resources
vertx-mongo-client — mvn dependency:get vertx-mongo-client · libregistry