Skip to content

feat: add GraphQL API layer - #634

Open
Buluz244 wants to merge 2 commits into
Abdulazeem-code:mainfrom
Buluz244:feat/graphql-api
Open

feat: add GraphQL API layer#634
Buluz244 wants to merge 2 commits into
Abdulazeem-code:mainfrom
Buluz244:feat/graphql-api

Conversation

@Buluz244

Copy link
Copy Markdown

Summary
Adds a GraphQL API alongside the existing REST endpoints to support flexible frontend queries and reduce over-fetching.
Changes
Integrated Apollo Server 5 with Express at /graphql
Added GraphQL schema definitions for User and Webhook.
Added Prisma-backed queries for:
Fetching users by username or address
Paginated user searches
Listing authenticated user webhooks
Added mutations for:
Registering users
Soft-deleting users
Creating webhooks
Deleting webhooks
Added authentication context using request headers and admin API key support.
Added owner/admin authorization checks for protected operations.
Added GraphQL DateTime scalar support.
Updated middleware to allow nested GraphQL variables without affecting REST validation.
Validation
Server test suite passes.
GraphQL schema parsing and module smoke checks pass.
ESLint validation passes.

closes #482

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@vercel

vercel Bot commented Aug 29, 2026

Copy link
Copy Markdown

@Buluz244 is attempting to deploy a commit to the Abdulazeem's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Abdulazeem-code

Copy link
Copy Markdown
Owner

RESOLVE CONFLICTS

@Abdulazeem-code

Copy link
Copy Markdown
Owner

FIX FAILED CHECKS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement GraphQL API as an alternative to REST endpoints

2 participants