Install and Setup¶
To install the available GraphQL modules, first you have to go to the shop’s directory
and to require the modules via
composer require oxid-esales/graphql-base composer require oxid-esales/graphql-storefront
After installing the modules you need to add their configurations into the project’s configuration file and run migrations. You can do it by running:
./vendor/bin/oe-console oe:module:install-configuration source/modules/oe/graphql-base/ ./vendor/bin/oe-console oe:module:install-configuration source/modules/oe/graphql-storefront/ ./vendor/bin/oe-eshop-doctrine_migration migration:migrate oe_graphql_storefront
This will overwrite the configuration of the modules if it was already present in the project’s configuration file.
Please ensure you have proper
/graphql/ entry point configuration in
RewriteRule ^graphql/?$ widget.php?cl=graphql&skipSession=1 [QSA,NC,L]
Now you need to activate the modules, either via OXID eShop admin or CLI.
./bin/oe-console oe:module:activate oe_graphql_base ./bin/oe-console oe:module:activate oe_graphql_storefront
Keep in mind that you have to activate the GraphQL Base module first.