I'm using spagobi to get data from mongodb. the problem is that the result includes some none using character . my query is:
view plaincopy to clipboardprint?
sbiDatasetfixedResult ={value : db.getCollection('test').aggregate(
[
{$match:{user_id :4}},
{$group:{_id: 0, value: {$sum: "$value" } } },
{$project: { _id: 0, value: 1 } }
]
)};
the result of code above
but i need like this form
![]()
Partager