You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idea is to define somehow (an special operation on the entity?) virtual attributes that are the result of doing an operation over other attributes in the same entity.
Some examples:
A and B being numeric attributes, we define S as the sum of A and B. If we do a GET on the entity we will get:
The key point is that, from the point of view of the client doing the GET requests, this is completely transparent. I mean, S should behave as "regular" attributes A and B (e.g. from the point of view of q filtering, etc.).
Of course, not only for synchronous GETs. Notifications should work the same way.
From an implementation point of view, two basic alternatives should be explored:
Take advantage of the MongoDB aggregation framework
Implement the operation at CB code space
The text was updated successfully, but these errors were encountered:
The idea is to define somehow (an special operation on the entity?) virtual attributes that are the result of doing an operation over other attributes in the same entity.
Some examples:
The key point is that, from the point of view of the client doing the GET requests, this is completely transparent. I mean, S should behave as "regular" attributes A and B (e.g. from the point of view of
q
filtering, etc.).Of course, not only for synchronous GETs. Notifications should work the same way.
From an implementation point of view, two basic alternatives should be explored:
The text was updated successfully, but these errors were encountered: