When the structure of the destinations document was updated (like adding an additional attribute of 'image') , it seems that Node.js was caching the previous output and the getAllDestinations API was not returning the new attribute and its values. As a workaround , the port for the http server was changed to 4000 from 3000 to get this working. Need to investigate on how to clear the cache in the Express and Connect modules.
When the structure of the destinations document was updated (like adding an additional attribute of 'image') , it seems that Node.js was caching the previous output and the getAllDestinations API was not returning the new attribute and its values. As a workaround , the port for the http server was changed to 4000 from 3000 to get this working. Need to investigate on how to clear the cache in the Express and Connect modules.