JetBrains / js-graphql-intellij-plugin

GraphQL language support for WebStorm, IntelliJ IDEA and other IDEs based on the IntelliJ Platform.
https://jimkyndemeyer.github.io/js-graphql-intellij-plugin/
MIT License
879 stars 97 forks source link

collision if a table name is `subscription` #638

Open efstathiosntonas opened 1 year ago

efstathiosntonas commented 1 year ago

Describe the bug I'm using Hasura 2.17.0 with Postgresql 14. If a table name is subscirption then it throws countless errors when fetching introspection rendering the plugin useless since everything turns 'red'.

Expected behavior I've renamed the table to "subscriptions" and everything went back to normal. I would expect the plugin to properly parse the table name and do not collide with types.

Version and Environment Details Operation system: [Macos 13.2] IDE name and version: [IntelliJ 2022.3.2] Plugin version: [3.3.0]

Additional context It took me 2 days to figure out what was going on :)