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

Dashboards not working when models contain model named Subscription #19448

Closed
jsalichos opened this issue Aug 16, 2023 · 1 comment · Fixed by #22535
Closed

Dashboards not working when models contain model named Subscription #19448

jsalichos opened this issue Aug 16, 2023 · 1 comment · Fixed by #22535

Comments

@jsalichos
Copy link

jsalichos commented Aug 16, 2023

Describe the Bug

When user selects Insights/Dashboards then an error occurs:

{
  "errors": [
    {
      "message": "Schema must contain uniquely named types but contains multiple types named \"Subscription\".",
      "extensions": {
        "code": "INTERNAL_SERVER_ERROR"
      }
    }
  ]
}

To Reproduce

Create a new data-model named "Subscription". Then try to create ANY dashboard. Now view the newly created dashboard!

Directus Version

v10.5.3

Hosting Strategy

Self-Hosted (Docker Image)

@rijkvanzanten
Copy link
Member

Subscription is a reserved type name in GraphQL, which in turn bricks the graphql endpoint and thus insights when your collection is named Subscription :| We'll have to figure out some naming trickery to override the collection name if the name is a known graphql reserved word

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

3 participants