Closed kartikjain12 closed 5 years ago
yes, that is an issue. I am currently working on a rewrite of o.js. The code is very old and doesn't fit today's needs. Therefore I will not fix that but I will inform you as soon as the new version is available.
Thanks for the update @janhommes
https://github.com/janhommes/o.js/tree/feature/version-1.0.0-rc.1
Here is the new version build in typescript. I will create a new npm package and an announcment out of it later that day.
In order to use patch, o.js requires you to have "(id)" in the path. This works most of the time but if you want to patch a singleton model and don't provide "(id)" in the path then the o data client throws an exception "Bulk updates are not supported. You need to query a unique resource with find() to patch/put it." For example in my javascript code the following does not work
but this will