- Labels:
backend, api, graphql
Description
We need a robust GraphQL API to serve the frontend client. We will implement Apollo Server (or Yoga) with TypeGraphQL/GraphQL-Tools to handle queries for experts, sessions, and active transactions.
Technical Scope & Steps
- Setup Apollo Server in a Node.js Express application.
- Define GraphQL type schemas (
ExpertType, SessionType, ReviewType, TransactionType).
- Implement Query Resolvers:
experts(category, search, limit, offset): Fetch and paginate experts.
expert(id): Fetch single expert details with reviews.
session(id): Fetch session status.
- Implement Mutation Resolvers:
updateProfile(expertInput): Modify expert information (protected by wallet auth).
submitReview(reviewInput): Submit seeker review.
Acceptance Criteria
- GraphQL playground is accessible locally.
- Search and pagination queries return correctly sorted and sliced results.
- Unhandled query errors return clean user-facing error payloads.
backend,api,graphqlDescription
We need a robust GraphQL API to serve the frontend client. We will implement Apollo Server (or Yoga) with TypeGraphQL/GraphQL-Tools to handle queries for experts, sessions, and active transactions.
Technical Scope & Steps
ExpertType,SessionType,ReviewType,TransactionType).experts(category, search, limit, offset): Fetch and paginate experts.expert(id): Fetch single expert details with reviews.session(id): Fetch session status.updateProfile(expertInput): Modify expert information (protected by wallet auth).submitReview(reviewInput): Submit seeker review.Acceptance Criteria