forked from nodkz/example-apollo2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gqlconfig
35 lines (34 loc) · 859 Bytes
/
.gqlconfig
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
27
28
29
30
31
32
33
34
35
// see config options https://github.com/Mayank1791989/gql
{
schema: {
// For Client query autosuggesting
files: 'schema.graphql'
// For Server: GoTo Definition + Type Checks
// files: 'packages/boilerplate-server/src/schema/**/*.gql'
},
query: {
files: [
{
match: 'src/**/*.ts',
parser: ['EmbeddedQueryParser', { startTag: 'gql`', endTag: '`' }],
validate: {
extends: 'gql-rules-query',
rules: {
FieldsOnCorrectType: 'off'
}
}
},
{
match: 'src/**/*.tsx',
parser: ['EmbeddedQueryParser', { startTag: 'gql`', endTag: '`' }],
validate: {
extends: 'gql-rules-query',
rules: {
KnownFragmentNames: 'off',
NoUnusedFragments: 'off'
}
}
},
]
}
}