From 9b28336cb8de19ddb36741d277a8c4cb8b19e424 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 22 Aug 2024 12:51:30 +1200 Subject: [PATCH] API Remove GraphQL --- _config/graphql-legacy.yml | 59 -------------------------------------- _config/graphql.yml | 59 -------------------------------------- package.json | 2 +- yarn.lock | 8 +++--- 4 files changed, 5 insertions(+), 123 deletions(-) delete mode 100644 _config/graphql-legacy.yml delete mode 100644 _config/graphql.yml diff --git a/_config/graphql-legacy.yml b/_config/graphql-legacy.yml deleted file mode 100644 index 1919f16..0000000 --- a/_config/graphql-legacy.yml +++ /dev/null @@ -1,59 +0,0 @@ ---- -Name: frameworktestgraphql-legacy -After: '#graphqlconfig' -Except: - classexists: 'SilverStripe\GraphQL\Schema\Schema' ---- - -SilverStripe\Core\Injector\Injector: - SilverStripe\GraphQL\Manager.frameworktest: - class: SilverStripe\GraphQL\Manager - constructor: - identifier: frameworktest - SilverStripe\GraphQL\Controller.frameworktest: - class: SilverStripe\GraphQL\Controller - constructor: - manager: '%$SilverStripe\GraphQL\Manager.frameworktest' - -SilverStripe\Control\Director: - rules: - 'frameworktest/graphql': - Controller: '%$SilverStripe\GraphQL\Controller.frameworktest' - -SilverStripe\GraphQL\Manager: - schemas: - frameworktest: - typeNames: - SilverStripe\FrameworkTest\Model\Company: Company - SilverStripe\FrameworkTest\Model\Employee: Employee - scaffolding: - types: - SilverStripe\FrameworkTest\Model\Company: - fields: - - ID - - Name - - Category - - Revenue - - CEO - operations: - read: true - update: true - create: true - delete: true - readOne: true - nestedQueries: - Employees: true - PastEmployees: true - SilverStripe\FrameworkTest\Model\Employee: - fields: - - ID - - Name - - Biography - - DateOfBirth - - Category - operations: - read: true - update: true - create: true - delete: true - readOne: true diff --git a/_config/graphql.yml b/_config/graphql.yml deleted file mode 100644 index 2dda321..0000000 --- a/_config/graphql.yml +++ /dev/null @@ -1,59 +0,0 @@ ---- -Name: frameworktestgraphql -After: '#graphqlconfig' -Only: - classexists: 'SilverStripe\GraphQL\Schema\Schema' ---- - -SilverStripe\Core\Injector\Injector: - SilverStripe\GraphQL\Schema\Schema.frameworktest: - class: SilverStripe\GraphQL\Schema\Schema - constructor: - schemaKey: frameworktest - SilverStripe\GraphQL\Controller.frameworktest: - class: SilverStripe\GraphQL\Controller - constructor: - schema: frameworktest - -SilverStripe\Control\Director: - rules: - 'frameworktest/graphql': - Controller: '%$SilverStripe\GraphQL\Controller.frameworktest' - -SilverStripe\GraphQL\Schema\Schema: - schemas: - frameworktest: - config: - modelConfig: - type_mapping: - SilverStripe\FrameworkTest\Model\Company: Company - SilverStripe\FrameworkTest\Model\Employee: Employee - models: - SilverStripe\FrameworkTest\Model\Company: - fields: - ID: true - Name: true - Category: true - Revenue: true - CEO: true - Employees: true - PastEmployees: true - operations: - read: true - update: true - create: true - delete: true - readOne: true - SilverStripe\FrameworkTest\Model\Employee: - fields: - ID: true - Name: true - Biography: true - DateOfBirth: true - Category: true - operations: - read: true - update: true - create: true - delete: true - readOne: true diff --git a/package.json b/package.json index 2e330d4..7cbce76 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ }, "devDependencies": { "@silverstripe/eslint-config": "^1.3.0", - "@silverstripe/webpack-config": "^2.1.0", + "@silverstripe/webpack-config": "^3.0.0-alpha1", "babel-jest": "^20.0.3", "jest-cli": "^19.0.2", "webpack": "^5.76.0", diff --git a/yarn.lock b/yarn.lock index 9b100f1..a6fc2d2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1362,10 +1362,10 @@ stylelint-config-standard "^36.0.0" stylelint-scss "^6.2.1" -"@silverstripe/webpack-config@^2.1.0": - version "2.1.0" - resolved "https://registry.yarnpkg.com/@silverstripe/webpack-config/-/webpack-config-2.1.0.tgz#9d6409498126db766299fa40f209f618515932a4" - integrity sha512-8rE2K3AXkIP6crDTBXdHz/3hiNVp2XpINkWGDBKzvMS6sGRcVTluPs12BdOXYo1aUZEeqDk9QYOLLGGgZxnOdw== +"@silverstripe/webpack-config@^3.0.0-alpha1": + version "3.0.0-alpha1" + resolved "https://registry.yarnpkg.com/@silverstripe/webpack-config/-/webpack-config-3.0.0-alpha1.tgz#9576b8b1deac92ea96636e149b051b513ce14ab6" + integrity sha512-xBsiewBVAUIGdshWSs8ChAg4JXNNpHMwBLhjhYJCPFKe2HpNx3OqFEIqjR9YgSbCVSxkNh4x5yvYklu6+k+YpA== dependencies: "@babel/core" "^7.19.6" "@babel/preset-env" "^7.19.4"