txng.collection(col).insert(row, return_new=True) does not return a new row
See original GitHub issuereturn_new=True
work perfectly as announced with normal insertion into a collection.
However an insertion using an transaction manager does not return anything like:
row = txn.collection('mycol').insert(data, return_new=True)
# row always None
Tested with 3.11.0
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top Results From Across the Web
Return inserted row - sql - Stack Overflow
You could insert the row and then use SCOPE_IDENTITY() to get the ID of the row you inserted and return the row with...
Read more >Can the 'returning' clause return source columns that are not ...
The documentation on the RETURNING clause says: An expression to be computed and returned by the INSERT command after each row is inserted....
Read more >How to insert as well as return the inserted row in the same ...
I have the following (kotlin), trying to insert a new user row as well as return the same from the same method in...
Read more >Fix the Error while inserting Row or Column in Excel - YouTube
When you try to insert rows or columns into a Microsoft Excel 2007 to 2016 or higher version worksheet, you may receive an...
Read more >SQL Server: Return Newly Inserted Row
The rows inserted into the table are captured in the virtual table INSERTED and returned back as a result set. In case you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So it looks like you might be able to do something like this in your query:
And that should return the meta information including the _key on each object.
@zopyx In python-arango version 4.0.0, transactions return job objects allowing result retrieval after commit. You can read more about it here. Please note that 4.0.0 is not backward compatible and you may need to significantly change your code. Cheers.