Getting Started

Maven Central


In order to begin, the following dependency needs to be added to your build.sbt:

libraryDependencies += "io.github.kirill5k" %% "mongo4cats-core" % "<version>"

For automatic derivation of Bson codecs via Circe, add this:

libraryDependencies += "io.github.kirill5k" %% "mongo4cats-circe" % "<version>"

For the ability to use embedded MongoDB in your tests, add this:

libraryDependencies += "io.github.kirill5k" %% "mongo4cats-embedded" % "<version>" % Test

Next steps

Once everything is in place, you can start accessing your data: