Hi, @brett19
I need to mutate some doc fields but this doc may not exists yet. For now I am using basic scenario:
- mutate fields (if doc exists then everything ok)
- if mutate failed then insert new doc with those fields
Hoped that there is a better way to do it in 1 round trip…
ps:
here Sub-doc API - upsert auto-create document? - #4 by chotenvan some mention of make_doc flag but I could not find it in nodejs docs or sources