Start a new topic

Missing _id after entity save

I have a collection hook that runs after a save operation. The problem is the request.body (the body of my entity) doesn't have it's _id filled properly. Actually it's missing.



It was working fine feel days ago ... and now it stopped.

Any clues?



Thanks!

The request.body will always have the original request. If the original request did not contain an _id, it will not be in the request.body. Check the response.body, which should be populated with the exact save entity after save.
Thanks Michael. Is there any way to generate this _id in the iOS SDK so I can send this _id before save the entity in the backend?
Michael, ignore my previous question. I created a method to generate an UID and worked fine.

Thanks!
Login or Signup to post a comment