-
Hi, // assuming you have an instance of MongoCodecProvider[MyClass] available in the implicit scope As it is easier to contrive a distinct example, could you share a test or perhaps a small code fragment showing what this CodeProvider.get() method should be doing? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello. Effectively, An example of how it is done can be found here. |
Beta Was this translation helpful? Give feedback.
Hello.
Effectively,
MongoCodecProvider[T]
is just a wrapper around MongoDB's nativeCodecProvider
class. The only reason why I've introduced it is so that I could derive codecs for case classes that have circe codecs provided (i.e. here).An example of how it is done can be found here.
There is also a page written about it here.