orientjs icon indicating copy to clipboard operation
orientjs copied to clipboard

livequery api does not normelize rid

Open imdark opened this issue 9 years ago • 1 comments

when a result is retured from a live query api update call it looks like this: { content: { '@type': 'd', '@class': 'players', name: 'Maxwell', score: 120 }, type: 'd', cluster: 12, position: 41, version: 0 } }

then the using application needs to combine cluster and postion to get the rid as described here: http://orientdb.com/docs/2.0/orientdb.wiki/Tutorial-Record-ID.html

this seems like an uncositstent api issue since objects returned from '*' selects do have @rid as a field

imdark avatar Jul 07 '15 20:07 imdark

any news on the issue with the @rid in LiveQuery?

I tried meteor-orientdb-demo-master

and when I run it it will give: Exception in template helper: TypeError: Cannot read property '@rid' of undefined pointing to leaderboard.js line: return player['@rid'] === Session.get("selectedPlayer")['@rid'];

My OrientDB version = OrientDB Server v2.1.4 (build UNKNOWN@r${buildNumber}; 2015-10-13 12:23:58+0000)

quartelh avatar Nov 20 '15 08:11 quartelh