forked from graphcommerce-org/graphcommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraphql.config.ts
29 lines (27 loc) · 899 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
27
28
29
import type { IGraphQLConfig } from 'graphql-config'
const config: IGraphQLConfig = {
projects: {
graphcommerce: {
schema: [
'examples/magento-graphcms/.mesh/schema.graphql',
'examples/magento-open-source/.mesh/schema.graphql',
'packages/graphql/apollo-client.graphql',
],
documents: [
'examples/magento-open-source/components/**/*.graphql',
'examples/magento-open-source/graphql/**/*.graphql',
'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',
},
},
}
export default config