You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using json-api, GET and POST requests have no problem. Every time, I tried PATCH requests, the response was 500 Internal Error. It took long time to figure out what was wrong. What I finally discovered, was that the problem was in schema declaration where I set { versionKey: false }, everything works fine without it.
I dont know if this behavior is considered normal. Even if it is, it has to be mentioned somewhere in the documentation.
The text was updated successfully, but these errors were encountered:
I dont know if this behavior is considered normal. Even if it is, it has to be mentioned somewhere in the documentation.
Yeah, it would make sense to document this. Basically, versionKey: true is required in the schema because the MongooseAdapter uses (and updates) the version key as a form of optimistic concurrency control.
I am using json-api, GET and POST requests have no problem. Every time, I tried PATCH requests, the response was 500 Internal Error. It took long time to figure out what was wrong. What I finally discovered, was that the problem was in schema declaration where I set { versionKey: false }, everything works fine without it.
I dont know if this behavior is considered normal. Even if it is, it has to be mentioned somewhere in the documentation.
The text was updated successfully, but these errors were encountered: