Skip to content

Implement Apollo Server GraphQL API Core Endpoint #2

Description

@Luluameh
  • 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

  1. Setup Apollo Server in a Node.js Express application.
  2. Define GraphQL type schemas (ExpertType, SessionType, ReviewType, TransactionType).
  3. 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.
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions