I'm creating a simple counter app, and I'd like to aggregate who counted up how many times per user.
Is it possible to do something like count(id) in SQL?
monaca
How about the code below?
"·The name of the collection is tentatively placed as ""counters."""
"·The target of acquisition is the ""count"" field."
"·Only items with the ""count"" field 1 are retrieved, and the total is obtained by ""totalItems""."
var counters=monaca.cloud.Collection("counters");
counters.findMine('count==1', '' , {propertyNames:["count"]})
.done(function(result)
{
console.log('Total items found:'+result.totalItems);
})
.fail(function(err)
{
console.log("Err#"+err.code+":"+err.message);
});
573 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
578 Understanding How to Configure Google API Key
613 GDB gets version error when attempting to debug with the Presense SDK (IDE)
915 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2024 OneMinuteCode. All rights reserved.