forked from graphcommerce-org/graphcommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraphql.config.js
39 lines (39 loc) · 1.19 KB
/
graphql.config.js
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
36
37
38
39
/**
* GraphQL Configuration
*
* [GraphQL VSCode extension](https://marketplace.visualstudio.com/items?itemName=GraphQL.vscode-graphql)
*
* Todo(paales): implement environment variables support:
*
* - https://github.com/graphql/vscode-graphql/pull/267
* - https://github.com/graphql/vscode-graphql/issues/257
* - https://github.com/graphql/vscode-graphql/issues/127
*/
module.exports = {
projects: {
MagentoGraphCms: {
schema: [
'examples/magento-graphcms/.mesh/schema.graphql',
'packages/graphql/apollo-client.graphql',
'packagesDev/graphql-codegen-near-operation-file/src/directive/env.graphqls',
'packagesDev/graphql-codegen-near-operation-file/src/directive/injectable.graphqls',
],
documents: [
'examples/magento-graphcms/components/**/*.graphql',
'examples/magento-graphcms/graphql/**/*.graphql',
'packages/**/*.graphql',
],
extensions: {
languageService: {
useSchemaFileDefinitions: true,
},
endpoints: {
default: {
url: 'http://localhost:3000/api/graphql/',
},
},
},
exclude: 'packages/hygraph-cli/readSchema.ts',
},
},
}