orientjs icon indicating copy to clipboard operation
orientjs copied to clipboard

Set returning field from live query in SELECT statement

Open RubenVermeulen opened this issue 8 years ago • 2 comments

Hello

I'm not sure if this is possible. When using live queries I'm not always interested in the whole node when this node is updated. I tried adding the fields to the SELECT statement, but without success.

For example:

The node has a field 'name' and a field 'description'. When I'm performing following LIVE query I expect only the field 'name' to be returned and not all fields of the node. Should this work or isn't this possible? When I'm testing I always get all fields from the node.

db.liveQuery('LIVE SELECT name FROM Cast').on('live-update', (res) => {...});

RubenVermeulen avatar Apr 18 '17 16:04 RubenVermeulen

Hi @RubenVermeulen

Projections are not supported yet. Probably they will be supported in OrientDB 3.0.

wolf4ood avatar Apr 19 '17 08:04 wolf4ood

Since the release is closing in of OrientDB 3.0, will this be added or not yet?

cuvelierm avatar Jan 22 '18 08:01 cuvelierm