Skip to content

FieldResolverError with Subscriptions #184

@Thinkenterprise

Description

@Thinkenterprise

Hi,
I try to start the subscription example graphql-spring-boot/example-graphql-subscription with the versions.

spring boot 2.0.3
graphql spring boot 5.0.2
graphiql spring boot 5.0.2
tools 5.2.4
rxjava 2.1.5

Without Subscriptions the example runs fine. But with Subscription I got the following error message during the startup of the application.

om.coxautodev.graphql.tools.FieldResolverError: No method found with any of the following signatures (with or without one of [interface graphql.schema.DataFetchingEnvironment] as the last argument), in priority order:
com.oembedler.moon.graphql.boot.resolvers.StockSubscription.stockQuotes(~stockCodes)
com.oembedler.moon.graphql.boot.resolvers.StockSubscription.getStockQuotes(~stockCodes)

It seems to be a problem in graphql tools. Graphql tools does not seem to expect a return value.
But the Return type should be a Publisher right?

Best Regards
Michael

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions