Closed vin-ni closed 2 years ago
Not yet, but that is a great idea. Can you provide any raw wikipedia api examples?
Thanks. I will take a look soon.
v6.3.0 is out with my initial release of chaining.
https://github.com/dijs/wiki#chain-data-requests-together-for-more-efficient-applications
I am sure there are some use cases I missed, but I wanted to get it out there for people to try out.
Is it possible to combine requests? I've read in the wiki api that it's recommended to combine queries as much as possible to save on requests.
Something like this for example:
wiki.page('batman').then(page => page.chainedRequest(['content', 'coordinates', 'summary'])).then(console.log);
Thank you!