holidayextras / jsonapi-server

A config driven NodeJS framework implementing json:api and GraphQL
MIT License
488 stars 115 forks source link

Fix detail of "Requested resource already exists" error when creating with client generated id #406

Open PieterJanVdb opened 6 years ago

PieterJanVdb commented 6 years ago

request.params.id would be undefined in the MemoryHandler during handler.create() as it's a POST. This uses the id that will always be on newResource.