How to Enable Dev Mode
Enable Dev Mode by modifying your router configuration file as shown below:Configuration Elements
json_log
- Use Case: When
json_log
is set tofalse
, it ensures logs are expressed in sugared output rather than JSON format. This is useful for environments where human readability is more important than structured data, such as during development or testing.
subgraph_error_propagation.propagate_status_codes
- Use Case: This setting, when set to
true
, allows that subgraph HTTP response status codes will be propagated to the client in the extensions statusCode field. This is important for handling errors effectively and ensuring that the client is aware of any issues with the request processing on the server side.
subgraph_error_propagation.omit_locations
- Use Case: Omit the extensions field of Subgraph errors. If the value is true, the extensions field of Subgraph errors will be omitted. This is useful in case you want to avoid leaking internal information to the client.
- Some users of GraphQL leverage the errors.extensions.code field to implement error handling logic in the client, in which case you might want to set this to false.
subgraph_error_propagation.allowed_extension_fields
- Use Case: The allowed extension fields are used to specify which fields of the Subgraph errors are allowed to be propagated to the client.
- Development mode adds “code” and “stacktrace” as default values