Request without Content-Type application/json have empty body.
I am using Postman REST Client and neglected to set the Content-Type to application/json which resulted in the body not being parsed by express.json and it was passing data = {} into my services' create handler.
I suggest that, since JSON is the notation being used for serialization with Feathers, that if the Content-Type is blank, it should default to application/json.
I am using Postman REST Client and neglected to set the
Content-Typetoapplication/jsonwhich resulted in the body not being parsed byexpress.jsonand it was passingdata = {}into my services'createhandler.I suggest that, since JSON is the notation being used for serialization with Feathers, that if the
Content-Typeis blank, it should default toapplication/json.