orientechnologies / orientechnologies/orientdb

"INSERT .... RETURN @this" returns RecordID instead of the record object itself

Open
#9,580 0 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.