Closed BoD closed 1 year ago
Hi! Could you please check a build from https://github.com/JetBrains/js-graphql-intellij-plugin/issues/661#issuecomment-1523498575?
@vepanimas Yes, it does work with that version!
Closing as the fix was released in 4.0.1
My project's structure is:
Here's my
graphql.config.yml
:Now if I open
feature1/src/main/graphql/servicea/operations.graphql
, everything is red, the fields cannot be resolved.Now if I change the order of declaration in the
graphql.config.yml
like so:Then I no longer have the issue, the fields are resolved and not red in
feature1/src/main/graphql/servicea/operations.graphql
.I don't understand why.
Also, in my case it would make more sense to declare the
graphqlSchema
projects first as they are a dependency of the feature ones.To Reproduce You can clone this repo:
git@github.com:BoD/apollo-kotlin-template-multi-modules-and-services.git
and checkout thegql-plugin-config-order-issue
branch.Version and Environment Details Operation system: MacOS IDE name and version: IntelliJ IDEA 2023.1.1 Plugin version: 4.0.0
Additional context I noticed this when programmatically contributing the config via the extension point, from the Apollo Kotlin plugin I'm working on. The issue is identical whether the config comes from the config file or from the extension point.