我需要为我的reactive spring应用程序实现一个graphql查询解析器。
下面是我的graphlq模式:
type Post{
id: String!
title: String
}
type Query {
posts: [Post!]!
}我的解析器看起来像这样:
public Flux<Post> posts(){ ...}我使用的是graphiql-spring-boot-starter 5.0.2和graphql-java-tools 5.2.4
发布于 2021-04-29 16:30:28
如果使用的是graphql-java异步,则可以使用.collectList().toFuture(),然后返回DataFetcher<CompletableFuture<T>>
https://stackoverflow.com/questions/65026492
复制相似问题