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 <cbham...@gmail.com>
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 <bharat...@gmail.com> wrote:
> > Hi
> >
> > How do I specify Collection info  along with the document URI when
> inserting
> > a marklogic document.
> >
> >
> > Thanks,
> > Bharath
> >
> > _______________________________________________
> > General mailing list
> > General@developer.marklogic.com
> > Manage your subscription at:
> > http://developer.marklogic.com/mailman/listinfo/general
> >
> _______________________________________________
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to