Thanks Shabana.
That was very helpful.
On Thu, May 10, 2018 at 2:48 PM, shabana khan
wrote:
> Hi Bharath,
>
> You can add document and collection in single step itself. If you look at
> the syntax of xdmp.documentInsert(), you will seen that you can pass
> collection in options node itself :
>
Hi Bharath,
You can add document and collection in single step itself. If you look at
the syntax of xdmp.documentInsert(), you will seen that you can pass
collection in options node itself :
declareUpdate();
xdmp.documentInsert(
'document URI',
document,
{ collections : 'name o
Thanks, Christopher.
I was able to add document and add this document to its collection in 2
steps.
declareUpdate();
xdmp.documentInsert('", "");
Is this correct?
Thanks,
Bharath
On Wed, May 9, 2018 at 6:08 PM, Christopher Hamlin
wrote:
> The second and third examples at
> https://docs.ma
The second and third examples at
https://docs.marklogic.com/xdmp:document-insert shows collections
being set.
Do those work for you?
On Wed, May 9, 2018 at 7:48 AM, Bharath Umesh wrote:
> Hi
>
> How do I specify Collection info along with the document URI when inserting
> a marklogic document.