Skip to content

How to replace the whole engine #1124

@andimarek

Description

@andimarek

Hi,

how would I replace the whole GraphQL Java engine with a custom implementation in Spring GraphQL?

What I mean is:

I would like to implement a custom ExecutionGraphQlService and therefore use all the transport level support, but everything else is custom.

I will also not have any Schema file (therefore the GraphQlAutoConfiguration will not run) or any Controller with mappings.

How would that look like in Spring GraphQL?

If I register just a custom ExecutionGraphQlService and a custom GraphQlProperties that causes the following error:

Parameter 2 of method graphQlRouterFunction in org.springframework.boot.autoconfigure.graphql.reactive.GraphQlWebFluxAutoConfiguration required a bean of type 'org.springframework.graphql.execution.GraphQlSource' that could not be found.

But I don't want any GraphQlSource instance.

Btw: I understand that this is not a common use case and it maybe very well out of scope, but nevertheless it would be great to be able to reuse all the awesome HTTP/Transport logic in Spring GraphQL.

Thanks team!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions