[ 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, counters { {"totalOrdersCount":1}, {"totalOrderValue": 23.33} } } was: 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, > counters { > {"totalOrdersCount":1}, > {"totalOrderValue": 23.33} > } > } -- This message was sent by Atlassian JIRA (v6.3.4#6332)