ember-data-contentful icon indicating copy to clipboard operation
ember-data-contentful copied to clipboard

Content Type ID in other notation than Model name does not work correctly

Open edwardmp opened this issue 6 years ago • 0 comments

Hi,

I just spent a few hours debugging why the model entries in EmberJS weren't showing up.

In the end I discovered that it has to do with how you name your model vs. how you name your content type ID in contentful.

E.g. with file name of model: faq-entry.js and content type ID of faqEntry, the model is never filled with entries. I had to create a new content type with the id faq-entry for it to work. This is quite confusing, since you can actually specifiy exceptions to the content type ID in the URL in the adapter but this is only used for making the request and not serializing the request.

edwardmp avatar Jun 20 '18 16:06 edwardmp