-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathgraphql.config.ts
26 lines (26 loc) · 1004 Bytes
/
graphql.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
* This file is used by the GraphQL LSP to provide configuration for the editor
* extension. It tells the extension where to find the GraphQL schema and where
* to find the GraphQL documents (queries, mutations, etc).
*
* Install the extension for VSCode here:
* https://marketplace.visualstudio.com/items?itemName=GraphQL.vscode-graphql
*
* When you have the extension installed, you will start getting autocompletion
* and type checking for your GraphQL queries and mutations. However, note that
* this is *editor-only* validation so make sure you have setup CI validations
* for your GraphQL queries as well eg. with gql.tada' `check` command:
* https://gql-tada.0no.co/reference/gql-tada-cli#check
*/
export default {
projects: {
server: {
schema: "./shared/schema.gql",
documents: ["server-new/src/**/*.{graphql,js,ts,jsx,tsx}"],
},
client: {
schema: "./shared/schema.gql",
documents: ["client/src/**/*.{graphql,js,ts,jsx,tsx}"],
},
},
};