diff --git a/.graphqlrc.yml b/.graphqlrc.yml index 26adb4b..be4cfdf 100644 --- a/.graphqlrc.yml +++ b/.graphqlrc.yml @@ -1,2 +1,2 @@ -schema: './services/crm/graphql/schema.graphql' +schema: './graphql/crm.schema.graphql' documents: '**/*.{graphql,js,ts,jsx,tsx}' diff --git a/apollo.config.js b/apollo.config.js index 003f3ec..a21b545 100644 --- a/apollo.config.js +++ b/apollo.config.js @@ -3,8 +3,8 @@ module.exports = { client: { service: { name: 'crmgraphql', - localSchemaFile: './services/crm/graphql/schema.graphql', + localSchemaFile: './graphql/crm.schema.graphql', }, - excludes: ['services/crm/graphql/schema.graphql'], + excludes: ['graphql/**/*'], }, }; diff --git a/services/crm/graphql/schema.graphql b/graphql/crm.schema.graphql similarity index 100% rename from services/crm/graphql/schema.graphql rename to graphql/crm.schema.graphql diff --git a/package.json b/package.json index dc400b8..f7cc17b 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "prettier": "prettier --write .", "precommit": "yarn prettier && yarn lint:fix", "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" }, "dependencies": {