val document = context().write(bob) val age: String = bobDoc() at BsonPath.parse("$.pets[1].age")
In KtMongo 0.25.0, the new experimental BsonPath class allows extracting #MongoDB documents using #JSONPath queries!
Currently only a subset of the JSONPath syntax is supported, more will be added in coming versions. Send us your feedback!
ktmongo.opensavvy.dev/api/-kotlin%...