If the data is array of objects the CRUD operations works. But with nested arrays ( still valid JSON ) I get TypeError: Cannot read property 'id' of undefined at Function.createId . In my case, I don't have control over the API I have to mock, so this is the structure. Have anyone has the same problem?
Hi all, I need to mock an API that consist of nested arrays, ex: db.json
If the data is array of objects the CRUD operations works. But with nested arrays ( still valid JSON ) I get
TypeError: Cannot read property 'id' of undefined at Function.createId
. In my case, I don't have control over the API I have to mock, so this is the structure. Have anyone has the same problem?