I suppose return is not required for a function during insertion of a document. Either way, it will be returning an empty sequence when doing so.
Thanks and Regards, Natraj A On Wed, Apr 17, 2013 at 12:27 AM, Chad Bishop <[email protected]>wrote: > Greetings,**** > > ** ** > > I have the following situation:**** > > ** ** > > let $var …**** > > for …**** > > where …**** > > return**** > > let $a …**** > > let $b …**** > > let $save := saveFunction($param)**** > > return ($a, anotherFunction($b)…)**** > > ** ** > > That saveFunction is inserting a document…or supposed to. ** ** > > ** ** > > What I’ve found is it doesn’t actually insert the document unless I:**** > > ** ** > > return $save**** > > ** ** > > Why is that? It matters in this situation because anotherFunction() > depends on the document existing.**** > > ** ** > > Thank you for any help,**** > > ** ** > > -Chad**** > > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > >
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
