Skip to content

Commit

Permalink
SmallRye GraphQL 1.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartisk committed Mar 24, 2022
1 parent 533bfff commit abd109f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bom/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<smallrye-health.version>3.2.0</smallrye-health.version>
<smallrye-metrics.version>3.0.4</smallrye-metrics.version>
<smallrye-open-api.version>2.1.22</smallrye-open-api.version>
<smallrye-graphql.version>1.4.3</smallrye-graphql.version>
<smallrye-graphql.version>1.4.4</smallrye-graphql.version>
<smallrye-opentracing.version>2.1.0</smallrye-opentracing.version>
<smallrye-fault-tolerance.version>5.3.1</smallrye-fault-tolerance.version>
<smallrye-jwt.version>3.3.3</smallrye-jwt.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@ public class GraphQLClientConfig {
@ConfigItem(defaultValue = "graphql-transport-ws")
public Optional<List<String>> subprotocols;

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

/**
* Maximum time in milliseconds that will be allowed to wait for the server to acknowledge a websocket connection
* (send a subprotocol-specific ACK message).
*/
@ConfigItem
public Optional<Integer> websocketInitializationTimeout;

/**
* The trust store location. Can point to either a classpath resource or a file.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ private GraphQLClientConfiguration toSmallRyeNativeConfiguration(GraphQLClientCo
quarkusConfig.proxyUsername.ifPresent(transformed::setProxyUsername);
quarkusConfig.proxyPassword.ifPresent(transformed::setProxyPassword);
quarkusConfig.maxRedirects.ifPresent(transformed::setMaxRedirects);
quarkusConfig.executeSingleResultOperationsOverWebsocket
.ifPresent(transformed::setExecuteSingleOperationsOverWebsocket);
quarkusConfig.websocketInitializationTimeout.ifPresent(transformed::setWebsocketInitializationTimeout);
return transformed;
}

Expand Down

0 comments on commit abd109f

Please sign in to comment.