Under NodeSDK for 2.6, i could return documents with
upsert, however, seems like this was removed in 4.1, i just want to confirm?
So we should be using
get() to get updated document?
If this so, can the documentation more clearly highlight this change?
Hello @roy.a.rico that is correct. An upsert will return MutationResult object instead of a document unlike 2.x its mentioned in the Migration guide
To get the document you will have to call the get after upsert like an example you see here. Ignore the transcoder part unless you need it.