I think the problem is that the document created in saveFunction() is not going to be created until the transaction is complete. MarkLogic is ACID. The best way to create the document for use by anotherFunction() in-line as you have it here depends on a few different factors...
On Tue, Apr 16, 2013 at 12:57 PM, 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
