My API in Rails with AMS (JSON:API) return from serializer the type name with dash (artemis-forum-disputes
), but inside my frontend app, who uses Ember, I store my models with subdirectory structure (artemis/forum/disputes
).
WARNING: Encountered a resource object with type "artemis-forum-disputes", but no model was found for model name "artemis-forum-dispute" (resolved model name using 'apollo-enterprise@serializer:application:.modelNameFromPayloadKey("artemis-forum-disputes")').
How solve this? Thanks.
Aucun commentaire:
Enregistrer un commentaire