spacecloud-io / space-cloud

Open source Firebase + Heroku to develop, scale and secure serverless apps on Kubernetes
https://space-cloud.io
Apache License 2.0
3.94k stars 222 forks source link

[Feature] Support auto generation of rtk query client using the RPC Provider #1630

Closed YourTechBud closed 1 year ago

YourTechBud commented 1 year ago

The problem faced currently?

  1. A decent sized project will probably have multiple rest apis. These get difficult to manage on the client side.
  2. Auto client generators from openapi spec are pretty useless
  3. rtk query is awesome! But no generator gives us tag support of client side cache invalidation.

How can we solve it?

  1. Use the openapi generated by the rpc provider to generate rtk-query client sdk.
  2. Add tag directive in graphql which compiled query can use to generate the tags requires for invalidation of cache.

If you want this feature to be implemented, give it a thumbs up reaction, so that we can determine which features are important to you. 👍