Skip to content

escapePayload returns null at max depth causing data loss in GraphQL responses #11897

Closed

Description

@Akash504-ai

👟 Reproduction steps

  1. Trigger a GraphQL query that returns a deeply nested response
  2. Ensure nesting exceeds _APP_GRAPHQL_MAX_DEPTH (default: 3)
  3. Observe the response payload
  4. Nested fields beyond the depth limit become null

👍 Expected behavior

When maximum depth is reached, the payload should remain intact (or be safely truncated), but should not silently become null.

👎 Actual Behavior

When depth exceeds the configured limit, escapePayload() returns null, causing nested payload values to be replaced with null. This leads to silent data loss in GraphQL responses.

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

Windows

🧱 Your Environment

Local development setup using the Appwrite repository (1.9.x branch).

Issue found in:
src/Appwrite/GraphQL/Resolvers.php → escapePayload()

Not tested on Appwrite Cloud.

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Activity

  1. added theissue type on Apr 14, 2026
  2. added
    product / databases
    product / vcs
    on Apr 14, 2026
  3. HarshMN2345 commented on Sep 8, 2026

    @HarshMN2345
    Member

    #13533 fixed here

  4. self-assigned this
    on Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

product / databasesproduct / vcs

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions