[MarkLogic Dev General] Saving a document with properties

Runstein, Robert E. (Contr) (IS) Robert.Runstein at ngc.com
Wed May 20 08:16:20 PDT 2009


I want to insert a new document with some custom properties using xcc.
The xdmp:document-add-properties function requires the document to exist
in the database and I want the insert and add of the properties to be
atomic.  While I could probably do something like

xdmp:document-insert($document, $documentUri),
xdmp:document-add-properties($documentUri, $properties)

I'm wondering if there is a way to do this with a single call to to the
database.  Thanks.

Bob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xqzone.marklogic.com/pipermail/general/attachments/20090520/6f7dbe20/attachment.html


More information about the General mailing list