public class VertxDataFetcher<T> extends Object implements graphql.schema.DataFetcher<CompletionStage<T>>
DataFetcher
that works well with Vert.x callback-based APIs.Constructor and Description |
---|
VertxDataFetcher(java.util.function.BiConsumer<graphql.schema.DataFetchingEnvironment,Promise<T>> dataFetcher)
Create a new data fetcher.
|
Modifier and Type | Method and Description |
---|---|
CompletionStage<T> |
get(graphql.schema.DataFetchingEnvironment environment) |
public VertxDataFetcher(java.util.function.BiConsumer<graphql.schema.DataFetchingEnvironment,Promise<T>> dataFetcher)
DataFetchingEnvironment
public CompletionStage<T> get(graphql.schema.DataFetchingEnvironment environment) throws Exception
get
in interface graphql.schema.DataFetcher<CompletionStage<T>>
Exception
Copyright © 2023 Eclipse. All rights reserved.