DecenTrade
DecenTrade copied to clipboard
[Feature Request]: Migrate REST API to GraphQL
Is there an existing issue for this?
- [X] I have searched the existing issues
Feature Description
Currently, the backend uses REST API for handling routes like /uploadImage and /uploadMetaData. This feature request proposes migrating the existing REST API to GraphQL to improve the efficiency, flexibility, and scalability of the project.
GraphQL will consolidate multiple REST endpoints into a single /graphql endpoint and provide the ability for clients to query only the data they need. Additionally, GraphQL will simplify fetching nested or related data compared to REST.
Use Case
This feature will:
- Allow users to fetch and send only the required data, improving network efficiency.
- Simplify API interactions by consolidating multiple endpoints into one.
- Provide a more flexible and scalable API structure, especially useful for complex queries involving nested data.
Benefits
- Flexibility: Clients can request exactly the data they need, reducing over-fetching or under-fetching.
- Efficiency: GraphQL reduces the need for multiple network requests to fetch related data.
- Scalability: As the project grows, managing and extending the API will be more straightforward.
- Developer Experience: Simplified schema design and auto-documentation of GraphQL APIs enhance both frontend and backend development.
Priority
High
Record
- [X] I agree to follow this project's Code of Conduct
- [ ] I'm a WOB contributor
- [X] I want to work on this issue
- [X] I'm willing to provide further clarification or assistance if needed.
You've successfully raised your issue, We'll get back to you soon. Don't forget to star⭐ the Repo.
assigned to you @muskan171105