Changing GraphQL server configuration
The HCL Commerce GraphQL server exposes many configuration options through a yaml or json file included in the container. A majority of the settings influence the Openapi to GraphQL translation, however a few others regulate the HTTP or HTTPS connection behaviour while GraphQL is functioning as both a server or client.
For detailed information about the available values, see the comments in the default yaml file that may be extracted from an image container using Docker commands. If the image is tagged with graphql-app:latest, execute the following commands;
-
% docker create --name=temp graphql-app:latest
-
% docker cp temp:/package/opts.yaml opts.yaml
-
% docker rm temp
You can experiment easily with different configuration settings and other custom extensions by volume mounting a host directory onto the path /SETUP/Custom in the container during development.