janhommes / o.js

o.js - client side oData lib.
https://janhommes.github.io/o.js/example/
MIT License
241 stars 58 forks source link

How to use .batch()? #67

Closed galeksandrp closed 6 years ago

galeksandrp commented 6 years ago

I need to make multiple PATCH requests for different entities in single $batch, how to do that?

janhommes commented 6 years ago

Have you tried the following?

o('/resouce1/2').put(data).batch('/resouce1/3').put(data).save(function () {
  // ready...
});