graphql: move schema to ./graphql
This commit is contained in:
parent
cb7a5eb628
commit
d7f78af557
@ -1,2 +1,2 @@
|
|||||||
schema: './services/crm/graphql/schema.graphql'
|
schema: './graphql/crm.schema.graphql'
|
||||||
documents: '**/*.{graphql,js,ts,jsx,tsx}'
|
documents: '**/*.{graphql,js,ts,jsx,tsx}'
|
||||||
|
|||||||
@ -3,8 +3,8 @@ module.exports = {
|
|||||||
client: {
|
client: {
|
||||||
service: {
|
service: {
|
||||||
name: 'crmgraphql',
|
name: 'crmgraphql',
|
||||||
localSchemaFile: './services/crm/graphql/schema.graphql',
|
localSchemaFile: './graphql/crm.schema.graphql',
|
||||||
},
|
},
|
||||||
excludes: ['services/crm/graphql/schema.graphql'],
|
excludes: ['graphql/**/*'],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
"prettier": "prettier --write .",
|
"prettier": "prettier --write .",
|
||||||
"precommit": "yarn prettier && yarn lint:fix",
|
"precommit": "yarn prettier && yarn lint:fix",
|
||||||
"graphql:codegen": "apollo client:codegen --target typescript",
|
"graphql:codegen": "apollo client:codegen --target typescript",
|
||||||
"graphql:schema": "apollo client:download-schema services/crm/graphql/schema.graphql",
|
"graphql:schema": "apollo client:download-schema graphql/crm.schema.graphql",
|
||||||
"prepare": "husky install"
|
"prepare": "husky install"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user