You might want to try db:output. See our documentation on performing returning updates and returning output.
Am 18.11.2017 01:44 schrieb "E. Wray Johnson" wray.johnson@gmail.com:
How can I white a single XQUERY statement that assigns an auto-generated id to a node (using either generate-id(), or random:uuid() ) then inserts the node into a database and then returns the auto-generated id.
I can do the id assignment and insert operation just fine using { }, I just don't know how to return the id afterward