reactivecouchbase-rs-core icon indicating copy to clipboard operation
reactivecouchbase-rs-core copied to clipboard

Feature Request - Sub-Document API

Open etspaceman opened this issue 8 years ago • 5 comments
trafficstars

Couchbase recently introduced the sub-document API, which allows users to patch nested document structures within a Couchbase document. I'd love to see this in Reactive Couchbase

https://developer.couchbase.com/documentation/server/current/developer-guide/sub-doc-api.html

etspaceman avatar Jun 24 '17 21:06 etspaceman

I've already tried to add support of Play Json for sub-document API in a private branch. However, to do this I've copy-pasted code, responsible for integration with Jackson from play-json. The reason why I've done this is that Couchbase driver ships with Jackson under custom namespaces :(. So to integrate with it properly you need to change all the namespaces, what I actually have done. Do not think that this solution is any good, so we can open discussion here.

igor-vovk avatar Jun 25 '17 11:06 igor-vovk

@igorynia interesting. Mind sharing the branch you tried this with so I can provide some thoughts?

etspaceman avatar Jun 25 '17 12:06 etspaceman

Okay, I will do that tomorrow

igor-vovk avatar Jun 25 '17 20:06 igor-vovk

Please take a look https://github.com/igorynia/reactivecouchbase-rs-core/commit/650e2192af98f91b3625f039493d92330cd501ab

igor-vovk avatar Jun 26 '17 05:06 igor-vovk

Hi guys, I exposed some new API about sub document (list, queue, set, map, mutateIn) but it's still very raw and it still expose raw couchbase driver APIs.

I will provide better API later, but I need to figure out how to do it properly

mathieuancelin avatar Jul 13 '17 09:07 mathieuancelin