Package | Description |
---|---|
io.vertx.ext.web.handler.graphql.schema |
Modifier and Type | Method and Description |
---|---|
static <T> VertxDataFetcher<T> |
VertxDataFetcher.create(BiConsumer<graphql.schema.DataFetchingEnvironment,io.vertx.core.Promise<T>> dataFetcher)
Create a new data fetcher that works well with callback based APIs.
|
static <T> VertxDataFetcher<T> |
VertxDataFetcher.create(BiConsumer<graphql.schema.DataFetchingEnvironment,io.vertx.core.Promise<T>> dataFetcher,
Function<graphql.schema.DataFetchingEnvironment,io.vertx.core.Context> contextProvider)
Like
create(BiConsumer) , except the method uses the provided contextProvider instead of capturing the current one. |
static <T> VertxDataFetcher<T> |
VertxDataFetcher.create(Function<graphql.schema.DataFetchingEnvironment,io.vertx.core.Future<T>> dataFetcher)
Create a new data fetcher that works well with
Future based APIs. |
static <T> VertxDataFetcher<T> |
VertxDataFetcher.create(Function<graphql.schema.DataFetchingEnvironment,io.vertx.core.Future<T>> dataFetcher,
Function<graphql.schema.DataFetchingEnvironment,io.vertx.core.Context> contextProvider)
Like
create(Function) , except the method uses the provided contextProvider instead of capturing the current one. |
Copyright © 2022 Eclipse. All rights reserved.