Can you show an examples of 1.json, 2.json, and 12.json? It's unclear what you mean by merge.
Justin -- Justin Makeig Director, Product Management MarkLogic justin.mak...@marklogic.com > On Aug 16, 2016, at 1:19 PM, Siva Viswabrahmana - Contractor > <siva.viswabrahm...@scdhhs.gov> wrote: > > Hi, > I am trying to merge /1.json +/2.json into /12.json > > Below query does not allow another document{…} > > xdmp:document-insert("/test/2.json",document { doc("/test/1.json") > },(),("aggregate")), > doc("/test/2.json”); > > Pls advise. > > Regards > Siva. > > From: <general-boun...@developer.marklogic.com > <mailto:general-boun...@developer.marklogic.com>> on behalf of Rob Szkutak > <rob.szku...@marklogic.com <mailto:rob.szku...@marklogic.com>> > Reply-To: MarkLogic Developer Discussion <general@developer.marklogic.com > <mailto:general@developer.marklogic.com>> > Date: Tuesday, August 16, 2016 at 4:16 PM > To: MarkLogic Developer Discussion <general@developer.marklogic.com > <mailto:general@developer.marklogic.com>> > Subject: Re: [MarkLogic Dev General] How to merge two json document in to > another document in MarkLogic > > Hello, > > Could you be more specific about what you're trying to accomplish? A sample > of the structure of your two documents and the merged format you would like > to put them in would be helpful in understanding how to assist you. > > Best, > Rob > > Rob Szkutak > Senior Consultant > MarkLogic Corporation > rob.szku...@marklogic.com <mailto:rob.szku...@marklogic.com> > www.marklogic.com > <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.marklogic.com&d=DQMFAw&c=l2yuVHfpC_9lAv0gltv6ZQ&r=cN7CeyOq0lJM02AripOo2ttwg5D3eXuv33TcKhL4pCc&m=rNydfvxVonydW6JhTkm2obiz9yoCm1Xc6bz9NItJESQ&s=upWKrIYFG07ljVGDMxSd98ACdlKEv9wQruWfiO4l7t0&e=> > > From: general-boun...@developer.marklogic.com > <mailto:general-boun...@developer.marklogic.com> > [general-boun...@developer.marklogic.com > <mailto:general-boun...@developer.marklogic.com>] on behalf of Siva > Viswabrahmana - Contractor [siva.viswabrahm...@scdhhs.gov > <mailto:siva.viswabrahm...@scdhhs.gov>] > Sent: Tuesday, August 16, 2016 3:11 PM > To: general@developer.marklogic.com <mailto:general@developer.marklogic.com> > Subject: [MarkLogic Dev General] How to merge two json document in to another > document in MarkLogic > > Hi, > How to merge two json document in to another document in MarkLogic? > > Regards > Siva. > Confidentiality Note > > > This message is intended for the use of the person or entity to which it is > addressed and may contain information, including health information, that is > privileged, confidential, and the disclosure of which is governed by > applicable law. If the reader of this message is not the intended recipient, > or the employee or agent responsible to deliver it to the intended recipient, > you are hereby notified that any dissemination, distribution or copying of > this information is STRICTLY PROHIBITED. > > If you have received this in error, please notify us immediately and destroy > the related message. > Confidentiality Note > > > This message is intended for the use of the person or entity to which it is > addressed and may contain information, including health information, that is > privileged, confidential, and the disclosure of which is governed by > applicable law. If the reader of this message is not the intended recipient, > or the employee or agent responsible to deliver it to the intended recipient, > you are hereby notified that any dissemination, distribution or copying of > this information is STRICTLY PROHIBITED. > > If you have received this in error, please notify us immediately and destroy > the related message. _______________________________________________ > General mailing list > General@developer.marklogic.com <mailto:General@developer.marklogic.com> > Manage your subscription at: > http://developer.marklogic.com/mailman/listinfo/general > <http://developer.marklogic.com/mailman/listinfo/general>
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general