janhommes / o.js

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

Add option to use custom applyQuery function. #130

Closed ciprian-dragomir closed 2 years ago

ciprian-dragomir commented 2 years ago

Include ability to specify a custom function to apply query parameters to a URL. The reason this is necessary is described in https://github.com/janhommes/o.js/issues/129#issue-1179733199

This does not include an alternative to the default - I leave it to the (repo) author to decide if we want to change the default to something more widely accepted. I have only introduced an escape hatch since currently there is no way to modify the query params other than monkey patching fetch which I had to do to make this work with Apache Olingo.