mekanika / qe

Query envelope (Qe) specification
2 stars 0 forks source link

Custom operator methods (count, sum, etc) #7

Open cayuu opened 9 years ago

cayuu commented 9 years ago

Qe do not currently explicitly support the notion of operator methods, things like common DB methods such as count, sum etc. So things like "count the number of friends" would have to be done via application-side logic on a find action.

Qe does allow developing support for a custom count action (the .do field) - but this would need to be manually implemented in a processing adapter (as it would lie outside the default implementation). Furthermore the Qe .meta field enables embedding arbitrary directives that can be processed by Qe API.

Leaving this ticket open for now - example adapter implementations would be handy.