graphql: move schema to ./graphql

This commit is contained in:
Chika 2022-05-14 19:05:50 +03:00
parent cb7a5eb628
commit d7f78af557
4 changed files with 4 additions and 4 deletions

View File

@ -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}'

View File

@ -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/**/*'],
}, },
}; };

View File

@ -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": {