Description
Add a GraphQL API layer to allow flexible querying for the frontend, alongside the existing REST endpoints.
Proposed Solution
Integrate Apollo Server with Express. Define a GraphQL schema that mirrors the Prisma schema, and write resolvers that utilize the existing database services.
Acceptance Criteria
Suggested Implementation Areas
src/server.js, src/graphql/ (new directory)
Impact
Improves frontend performance by preventing over-fetching and under-fetching of data.
Description
Add a GraphQL API layer to allow flexible querying for the frontend, alongside the existing REST endpoints.
Proposed Solution
Integrate Apollo Server with Express. Define a GraphQL schema that mirrors the Prisma schema, and write resolvers that utilize the existing database services.
Acceptance Criteria
Suggested Implementation Areas
src/server.js,src/graphql/(new directory)Impact
Improves frontend performance by preventing over-fetching and under-fetching of data.