Hello everyone!
I’ve been exploring and contributing to Meshery UI for the past three weeks, and I’m excited to be part of this amazing open-source community! As I work on migrating API calls from a custom data-fetching function to RTK Query, I couldn’t help but notice the presence of GraphQL in the project as well.
I’m curious about the reasoning behind using both GraphQL and RTK Query. From my understanding:
RTK Query is a powerful tool for managing API requests and caching, making data fetching more efficient in Redux-based applications.
GraphQL offers flexibility in querying only the needed data, reducing over-fetching and under-fetching issues compared to REST.
Given this, I’d love some insights from the community:
How does GraphQL fit into the Meshery UI architecture alongside RTK Query? Are they used together, or does RTK Query primarily handle REST API calls while GraphQL serves a different purpose?
Are there specific cases where GraphQL is preferred over RTK Query or vice versa?
Is there an ongoing effort to unify the approach, or is maintaining both necessary for certain functionalities?
I want to make meaningful contributions and ensure that the migration to RTK Query aligns well with the project’s architecture. Any insights or historical context from maintainers and experienced contributors would be greatly appreciated!
Thanks in advance for your guidance and for fostering such a welcoming community. Looking forward to learning from you all!