How to use ember with mongodb and node


#1

Hi all I am in the process of learning to code with emberjs, and want to understand how to read and write to a mongodb server. Can anyone point me to something current that shows how to do this.

I came across the following article somewhat missing details and looks like things have changed and I can’t get the example to work:

I’ve got mongodb setup and working and can read the data using curl as in the article, where it fails is with ember, no data is loaded as I see the following error:

Error while processing route: index Assertion Failed: normalizeResponse must return a valid JSON API document: * One or more of the following keys must be present: “data”, “errors”, “meta”. Error: Assertion Failed: normalizeResponse must return a valid JSON API document: * One or more of the following keys must be present: “data”, “errors”, “meta”.

I get the error, but don’t know how to fix it to get things working.