npm install ts-graphql-plugin -D
- ext install Prisma.vscode-graphql
- Create
.graphqlconfig
with folowing content (values for example):
schemaPath: schema/schema.graphql
includes: ["components/**/*.{graphql,ts,tsx}"]
extensions:
endpoints:
default: http://localhost:4000
Note: not use
./
notation in path
- Create
tsconfig.json
with folowing content (values for example):
{
"plugins": [
{
"name": "ts-graphql-plugin",
"schema": "schema/schema.graphql",
"tag": "gql"
}
]
}
Thanks @dmitryanderson for investigation