Class GraphQLClientConfig


  • public class GraphQLClientConfig
    extends Object
    • Field Detail

      • subprotocols

        @ConfigItem(defaultValue="graphql-transport-ws")
        public Optional<List<String>> subprotocols
        WebSocket subprotocols that should be supported by this client for running GraphQL operations over websockets. Allowed values are: - `graphql-ws` for the deprecated Apollo protocol - `graphql-transport-ws` for the newer GraphQL over WebSocket protocol (default value) If multiple protocols are provided, the actual protocol to be used will be subject to negotiation with the server.
      • executeSingleResultOperationsOverWebsocket

        @ConfigItem
        public Optional<Boolean> executeSingleResultOperationsOverWebsocket
        If true, then queries and mutations will run over the websocket transport rather than pure HTTP. Off by default, because it has higher overhead.
      • websocketInitializationTimeout

        @ConfigItem
        public OptionalInt websocketInitializationTimeout
        Maximum time in milliseconds that will be allowed to wait for the server to acknowledge a websocket connection (send a subprotocol-specific ACK message).
      • trustStore

        @ConfigItem
        public Optional<String> trustStore
        The trust store location. Can point to either a classpath resource or a file.
      • keyStore

        @ConfigItem
        public Optional<String> keyStore
        The key store location. Can point to either a classpath resource or a file.
      • allowUnexpectedResponseFields

        @ConfigItem
        public Optional<Boolean> allowUnexpectedResponseFields
        Allowing unexpected fields in response. If true, there will be warning log of an unexpected field. Else it throws an error.
    • Constructor Detail

      • GraphQLClientConfig

        public GraphQLClientConfig()