Avoid boiler plate code that all indexer widgets need in order to make queries to QueryAPI
Make it as simple as possible for users to get the data they need while taking care of the best practices for data retrieval in the background
Create a tighter integration with the VM to allow QueryAPI to become a first class citizen of the BOS
Create swappable QueryAPI links, similarly to RPC URLs in DAPP frontends which can be easily switched to other RPC providers thus fulfilling QueryAPI's goal of being a generic open source indexing framework that anyone can adopt and run.
### Tasks
- [ ] Finalize QueryAPI Client functionality & Design
- [ ] Expose QueryAPI Query Client Method from the VM
- [ ] Expose QueryAPI Subscribe Method From the VM
- [ ] Create Documentation for migrating widgets to use the QueryAPI Client
We need to create a QueryAPI Client for the BOS VM which simplifies querying QueryAPI Indexers for BOS related data.
QueryAPI.query(graphQLQuery, optionalOptions, optional_queryapi_url) QueryAPI.subscribe(graphQLSubscription, optionalOptions, optional_queryapi_url)
This initiative will help with a few things: