Skip to content

#906 [GraphQL] Enforce query complexity and cost limits alongside dep… - #1069

Open
UmehMichael495 wants to merge 1 commit into
StellarDevHub:mainfrom
UmehMichael495:#906--GraphQL]-Enforce-query-complexity-and-cost-limits-alongside-depth-validation-FIX
Open

#906 [GraphQL] Enforce query complexity and cost limits alongside dep…#1069
UmehMichael495 wants to merge 1 commit into
StellarDevHub:mainfrom
UmehMichael495:#906--GraphQL]-Enforce-query-complexity-and-cost-limits-alongside-depth-validation-FIX

Conversation

@UmehMichael495

Copy link
Copy Markdown

Replaced unstable third-party depth validation packages with a robust, native GraphQL AST validation rule in backend/src/graphql/validationRules.ts. The implementation calculates query depth recursively, properly handles fragment spreads and inline fragments with infinite-loop protection, and hooks into Apollo Server's validationRules to block over-depth queries prior to resolver execution.

CLOSE #906

@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown

@UmehMichael495 is attempting to deploy a commit to the Ayomide Adeniran's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jul 31, 2026

Copy link
Copy Markdown

@UmehMichael495 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@ayomideadeniran

Copy link
Copy Markdown
Contributor

pr under review

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.

[GraphQL] Enforce query complexity and cost limits alongside depth validation

2 participants