forked from graphcommerce-org/graphcommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraphql.config.js
32 lines (32 loc) · 942 Bytes
/
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
/**
* GraphQL Configuration
*
* [GraphQL VSCode exstension](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',
'packagesDev/graphql-codegen-near-operation-file/src/injectable.graphqls',
],
documents: ['examples/magento-graphcms/components/**/*.graphql', 'packages/**/*.graphql'],
extensions: {
languageService: {
useSchemaFileDefinitions: true,
},
endpoints: {
default: {
url: 'http://localhost:3000/api/graphql/',
},
},
},
},
},
}