I’m trying to display data from my collection based on search criteria and paginate the results. I’m using alethes:pages package for pagination. The problem is that my collection consists of subdocuments and it’s being displayed as Object. I want to retrieve it’s values.
Following is my HTML code:
Current Output :
totalFlights: [object Object]
flightNumber: 2
commuter:
JSON Collection structure:
{“totalFlights”:[{“vdsFlight”:{“flightNo”:“2”,“deptAirportCode”:“AAA”,“arrAirportCode”:“BBB”,“deptTime”:“2015-05-30 11:15 CEST”,“arrTime”:“2015-05-30 19:50 CEST”},“acsFlight”:null}],“flightNo”:“2”,“commuter”:false}.
Please help me print the contents of totalFlights instead of Object.
Thanks