Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable introspection, returns null in __typename--Dynamic Schema #1465

Open
ct-porco opened this issue Jan 15, 2024 · 0 comments
Open

Disable introspection, returns null in __typename--Dynamic Schema #1465

ct-porco opened this issue Jan 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ct-porco
Copy link

Expected Behavior

"__typename" field is populated when introspection is disabled.

{
  "data": {
    "user": {
      "avatar": {
        "__typename": "Image"
      },
      "__typename": "User"
    }
  }
}

Actual Behavior

"__typename" field is always null when introspection is disabled, which may break queries which return Union types.

{
  "data": {
    "user": {
      "avatar": {
        "__typename": null
      },
      "__typename": null
    }
  },
}

Steps to Reproduce the Problem

  1. Use dynamic schema
  2. Use schema.disable_introspection()
  3. Make a request with __typename

Specifications

  • Version: 6.0.3
  • Platform: Debian 12 (Bookworm)
  • Subsystem: N/A
@ct-porco ct-porco added the bug Something isn't working label Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant