angular/in-memory-web-api

It does not enable to use models who the id type is a string.

danielpcampagna opened this issue · 0 comments

I need to use the model id type as a string.
But when I call method post, to add a new model, I got this error: "Collection 'model' id type is non-numeric or unknown. Can only generate numeric ids."

{
   "body": {
      "error": "Collection 'model' id type is non-numeric or unknown. Can only generate numeric ids.",
      "__proto__": {  }
   },
   "headers": {  },
   "status": 422,
   "statusText": "Unprocessable Entity",
   "url": "api/models",
   "__proto__": {  },
}