J'essaie d'apprendre à utiliser restHeart rest api et voir si je peux éviter tout code personnalisé pour écrire un code java pour interroger MongoDB.Agrégation RestHeart
J'essaye d'exécuter ci-dessous la question de mongoshell, aucune idée comment devrait-elle être écrite dans la demande de RestHeart?
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 est collecitonName.
Merci. L'information a aidé. – Abhinav1singhal