You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "Alan Ho (JIRA)" <ji...@apache.org> on 2015/04/28 22:12:06 UTC
[jira] [Updated] (USERGRID-600) Enable "counters" to be incremented
when posting to any collection
[ https://issues.apache.org/jira/browse/USERGRID-600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alan Ho updated USERGRID-600:
-----------------------------
Description:
Right now the only way to increment / decrement a counter is to put the "counter" in an event. It would be awesome if we can put a counter into any entity so you can increment / decrement counts more easily. For example, you want to increment a "total orders" counter whenever an order entities are create.
POST /orders
{
"id" : 12345,
"orderValue " : 23.33,
counter{
}
}
> Enable "counters" to be incremented when posting to any collection
> ------------------------------------------------------------------
>
> Key: USERGRID-600
> URL: https://issues.apache.org/jira/browse/USERGRID-600
> Project: Usergrid
> Issue Type: Improvement
> Reporter: Alan Ho
>
> Right now the only way to increment / decrement a counter is to put the "counter" in an event. It would be awesome if we can put a counter into any entity so you can increment / decrement counts more easily. For example, you want to increment a "total orders" counter whenever an order entities are create.
> POST /orders
> {
> "id" : 12345,
> "orderValue " : 23.33,
> counter{
>
> }
> }
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)