Thanks, Christopher.
I was able to add document and add this document to its collection in 2
steps.
declareUpdate();
xdmp.documentInsert('<Document URI',
{..........}
);
xdmp:document-add-collections("<document URI>", "<Collection Name>");
Is this correct?
Thanks,
Bharath
On Wed, May 9, 2018 at 6:08 PM, Christopher Hamlin <[email protected]>
wrote:
> 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 <[email protected]> wrote:
> > Hi
> >
> > How do I specify Collection info along with the document URI when
> inserting
> > a marklogic document.
> >
> >
> > Thanks,
> > Bharath
> >
> > _______________________________________________
> > General mailing list
> > [email protected]
> > Manage your subscription at:
> > http://developer.marklogic.com/mailman/listinfo/general
> >
> _______________________________________________
> General mailing list
> [email protected]
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general