You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
It is not possible to reference a schema that's outside of the project's root.
"schemaPath": "../backend/schema.graphql",
To Reproduce
I have a NestJS server and a frontend in Angular that consumes the GraphQL api with an Apollo Server. My frontend uses graphql-tag with gql'query MyQuery() { }' and the extension cannot autocomplete and says "unknown field" and the query is in red.
Create a backend and generate a schema.graphql
Create a frondend and a .graphqlconfig then try to reference your backend's schema
Expected behavior
We should be able to ../../ outside the project.
Additional context
It works when I open the folder with the two projects inside but I don't want to because then my IDE doesn't work properly since boths projects have different tslint, typescript version, prettier, etc
@joelworsham Hi! As mentioned in issue #668, probably, this one will also be resolved. It would be great if you could give an EAP a try!
Schemas defined in parent directories should work in the upcoming 2023.3 release, you can try an already published EAP to check if the issue is solved for you.
Describe the bug
It is not possible to reference a schema that's outside of the project's root.
"schemaPath": "../backend/schema.graphql",
To Reproduce
I have a NestJS server and a frontend in Angular that consumes the GraphQL api with an Apollo Server. My frontend uses
graphql-tag
withgql'query MyQuery() { }'
and the extension cannot autocomplete and says "unknown field" and the query is in red.Expected behavior
We should be able to ../../ outside the project.
Additional context
It works when I open the folder with the two projects inside but I don't want to because then my IDE doesn't work properly since boths projects have different tslint, typescript version, prettier, etc
The text was updated successfully, but these errors were encountered: