Ottoman and subdoc operation


#1

Does ottoman support subdocument operation like inserting new elements in a phonenumber array in a document as well as update or delete elements ? Also does ottoman require the use of references docs for those type of transactions or can I just store a list of phone number objects in an array ?


#2

Hey @makeawish,

Ottoman.js does not currently support performing sub-document operations on its documents. It does however utilize atomic writes (CAS), so it is possible to safely pull the document, add the phone number and save it again.

Cheers, Brett


#3

Is there some doc on how to use ottoman to do this ? Also will this allow to remove or emupdate the sub doc via the atomic call ?
Is there plans to add support for sub docs to ottoman ?