Generated Connection and Edge types are not recognized in IntelliJ #1283
-
|
I'm implementation Relay Pagination but my type's build.gradle.kts schema.graphql I also get the error The code compiles and run fine. I'm able to fetch paginated items but I'd like to get rid of the error I also can't find the generated classes for the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The |
Beta Was this translation helpful? Give feedback.
The
@connectiondirective is specific to the DGS framework and treats it specially by internally generating the SDL type MyCustomTypeConnection at runtime. This is not generated at build time. Also note that this will not generate corresponding POJOs (and hence will not be present in the build directory). The expectation is for the user to map it to the corresponding relay custom type. IntelliJ is unable to understand the runtime generated SDL type and that is why you see the error.To fix this , we will need to add logic in the DGS IntelliJ Plugin to detect this and suppress it. We have an issue to track that : Netflix/dgs-intellij-plugin#30