本文整理了Java中graphql.GraphQL.nvl()
方法的一些代码示例,展示了GraphQL.nvl()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GraphQL.nvl()
方法的具体详情如下:
包路径:graphql.GraphQL
类名称:GraphQL
方法名:nvl
暂无
代码示例来源:origin: graphql-java/graphql-java
/**
* This helps you transform the current GraphQL object into another one by starting a builder with all
* the current values and allows you to transform it how you want.
*
* @param builderConsumer the consumer code that will be given a builder to transform
*
* @return a new GraphQL object based on calling build on that builder
*/
public GraphQL transform(Consumer<GraphQL.Builder> builderConsumer) {
Builder builder = new Builder(this.graphQLSchema);
builder
.queryExecutionStrategy(nvl(this.queryStrategy, builder.queryExecutionStrategy))
.mutationExecutionStrategy(nvl(this.mutationStrategy, builder.mutationExecutionStrategy))
.subscriptionExecutionStrategy(nvl(this.subscriptionStrategy, builder.subscriptionExecutionStrategy))
.executionIdProvider(nvl(this.idProvider, builder.idProvider))
.instrumentation(nvl(this.instrumentation, builder.instrumentation))
.preparsedDocumentProvider(nvl(this.preparsedDocumentProvider, builder.preparsedDocumentProvider));
builderConsumer.accept(builder);
return builder.build();
}
代码示例来源:origin: com.graphql-java/graphql-java
/**
* This helps you transform the current GraphQL object into another one by starting a builder with all
* the current values and allows you to transform it how you want.
*
* @param builderConsumer the consumer code that will be given a builder to transform
*
* @return a new GraphQL object based on calling build on that builder
*/
public GraphQL transform(Consumer<GraphQL.Builder> builderConsumer) {
Builder builder = new Builder(this.graphQLSchema);
builder
.queryExecutionStrategy(nvl(this.queryStrategy, builder.queryExecutionStrategy))
.mutationExecutionStrategy(nvl(this.mutationStrategy, builder.mutationExecutionStrategy))
.subscriptionExecutionStrategy(nvl(this.subscriptionStrategy, builder.subscriptionExecutionStrategy))
.executionIdProvider(nvl(this.idProvider, builder.idProvider))
.instrumentation(nvl(this.instrumentation, builder.instrumentation))
.preparsedDocumentProvider(nvl(this.preparsedDocumentProvider, builder.preparsedDocumentProvider));
builderConsumer.accept(builder);
return builder.build();
}
内容来源于网络,如有侵权,请联系作者删除!