flowfi icon indicating copy to clipboard operation
flowfi copied to clipboard

[Docs] Document the GraphQL API surface or unmount it

Open blurbeast opened this issue 2 weeks ago • 6 comments

Overview & Background

An entire production-exposed query/mutation API exists — app.use("/graphql", graphqlRoutes) in backend/src/app.ts:164, with a full nexus schema and query executor in backend/src/graphql/routes.ts — yet the word "graphql" appears in zero docs: not README.md, docs/, backend/README.md, docs-site/, or the Postman collection. The README API section lists only REST/OpenAPI/SSE, and docs/ARCHITECTURE.md says "Express API: serves versioned REST endpoints". The endpoint is also unversioned, bypassing the /v1 story. Integrators and auditors cannot discover or review its auth/complexity posture.


Technical Specification & Architecture

  1. Add a GraphQL section to docs/api/README.md and the README API docs (schema, auth model, rate limits), or gate/mount it under documented conditions.
  2. Reconcile the versioning story (why is GraphQL not under /v1?).

Target Files

  • README.md
  • docs/api/README.md
  • docs/ARCHITECTURE.md
  • backend/src/app.ts

Acceptance Criteria

  • [ ] GraphQL is either documented (schema, auth, limits) or not publicly mounted.
  • [ ] Architecture docs match the actual API surface.
  • [ ] The Postman/OpenAPI story explains what is and isn't covered.

blurbeast avatar Nov 18 '26 19:11 blurbeast

@Joseph-tech10 has applied to work on this issue as part of the Stellar Wave Program's 11th wave.

I’ve thoroughly reviewed the issue and have a clear understanding of the intended outcome. I’d like to take this on and deliver a well-integrated solution that meets the acceptance criteria while maintaining the quality and consistency of the existing project.

ℹ️ Repo Maintainers: To accept this application, review their application or assign @Joseph-tech10 to this issue.

Joseph-tech10 avatar Nov 20 '26 12:11 Joseph-tech10

@phatloi0010 has applied to work on this issue as part of the Stellar Wave Program's 11th wave.

I can audit the /graphql surface in backend/src/app.ts:164 and backend/src/graphql/routes.ts (nexus schema, queries, mutations, and auth) and thoroughly document it across README.md, backend/README.md, and docs/ (or gate/unmount it cleanly if intended as non-production per maintainer preference), ensuring every documented operation matches the live schema. 5/5 merged PRs in Stellar Wave. Ready to start immediately.

ℹ️ Repo Maintainers: To accept this application, review their application or assign @phatloi0010 to this issue.

phatloi0010 avatar Nov 20 '26 12:11 phatloi0010

@sojetunde8 has applied to work on this issue as part of the Stellar Wave Program's 11th wave.

I can fix this

ℹ️ Repo Maintainers: To accept this application, review their application or assign @sojetunde8 to this issue.

sojetunde8 avatar Nov 20 '26 12:11 sojetunde8

Congratulations, @sojetunde8! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on November 25, 2026.

🧑‍💻 @sojetunde8: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

🌊 Happy Wave 🌊

drips-wave[bot] avatar Nov 20 '26 12:11 drips-wave[bot]

🎉 This issue has been marked as completed on GrantFox!

@sojetunde8's PR #1920 was approved and merged by @K1NGD4VID.

🏆 @sojetunde8: You earned 40 FoxPoints for this contribution! Your current tier: Builder (1,206 total points). Track your full progress on GrantFox.

👏 Great work, @sojetunde8! Keep contributing to LabsCrypt.

grantfox-oss[bot] avatar Nov 21 '26 14:11 grantfox-oss[bot]

This issue has been completed by @sojetunde8 as part of the Stellar Wave Program's 11th Wave 🥳

😎 @sojetunde8: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

drips-wave[bot] avatar Nov 21 '26 14:11 drips-wave[bot]