orientjs icon indicating copy to clipboard operation
orientjs copied to clipboard

RID normal query vs live query

Open RubenVermeulen opened this issue 8 years ago • 1 comments

I noticed that there is a difference in output for the rid in a normal query vs a live query.

While a normal query displays the rid as follows:

{
   "@rid": { "cluster": ..., "position": ..., [ Function]},
   "username": "Bob"
}

A live query displays the rid like this:

{
   "cluster": ..., 
   "position": ...,
   "content": { "username": "Bob"}
}

Is there are reason the rid isn't part of the property 'content'?

RubenVermeulen avatar May 18 '17 09:05 RubenVermeulen

Hi @RubenVermeulen

yes i noticed too. For backward compatibility i cannot change that. So we are probably going to change that for 3.0 and use the same format

Thanks

wolf4ood avatar Jun 05 '17 09:06 wolf4ood