orientechnologies / orientechnologies/orientdb
"INSERT .... RETURN @this" returns RecordID instead of the record object itself
Open
@luigidellaquila is already working on this.
Since Jun 25, 2021.
- Dominant language
- Java
- Stars
- 5k
- Forks
- 868
- Avg merge
- 15h 6m
- Merged PRs (30d)
- 18
Description
OrientDB Version: 3.1.9 (docker image)
Java Version: whatever comes with official docker image 3.1.9
OS: Ubuntu
Expected behavior
"INSERT .... RETURN @this" should return record itself as opposite to "INSERT .... RETURN @rid" according to documentation
Actual behavior
"INSERT .... RETURN @this" returns { '@this': RecordID } instead of record object itlsef
Steps to reproduce
Node.JS 12.18.2
OrientJS client v.3.0.11
call: db.pool.acquire().then(session => session.insert().into('MyClass').set({data: 'data'}).return('@this').one()).then(console.log)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.