I am trying to learn to use restHeart rest api and see if I can avoid any custom code to write any java code to query MongoDB.
I am trying to execute below mongoshell query, any idea how should it be written in RestHeart request?
db.getCollection('InsStatData').aggregate({'$match':{'$and':[{ 'sectionName': 'ASSETS'},{'year':2015},{ 'sections.data.rowIdx': 1},{'sections.data.values.colIdx':2}]}},
{ '$unwind': '$sections' },
{ '$unwind': '$sections.data' },
{ '$unwind': '$sections.data.values' },
{'$match':{'$and':[{ 'sectionName': 'ASSETS'},{'year':2015},{
'sections.data.rowIdx': 1},{'sections.data.values.colIdx':2}]}}
)
InsStatData is collecitonName.