Closed ScreamZ closed 4 years ago
your first issue has been addressed, however there is no plan to continue supporting #import
syntax in graphql as I understand, as that is not spec, and this is soon to become the official GraphQL extension.
you should find a lot of features are working across the workspace, including fragment completion, as long as you use documents
to include them in the new graphql config@3 pattern
Hello,
I'm trying to make a good integration for my React GraphQL project.
I was using GraphQL code Generator at first but I switched to GraphQL config because i can also generate code using it.
Context
I'm using three separated project (2 frontend: 1 mobile app using React Native and one web app using ReactJS. 1 backend using apollo server).
I'm trying to get types / import completion in the frontend apps, also validate schema against remote schema.
Issues / Success
✅ I'm able to
graphql validate
and get proper results, alsographql coverage
detect my used queries and everything can be validated before commit which is great.graphql-files-modules.d.ts
andgraphql-operations-types.ts
generated in my project folder ongraphql codegen
⛔️ I'm not able to
.gql
files based on my remote types..gql
file path auto-completion in.tsx
/.jsx
files.Specifications
My folder structure with the .gql file
Logs Of TS Server || GraphQL Language Service
GraphQL server I had nothing before switching to rc instead of config. But I had no completion before too…
Thanks