graph-quilt / graph-quilt/graphql-orchestrator-java

Can this be used for replacing an existing GraphqQL implementation gradually ?

Open
#202 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Groovy
Stars
73
Forks
32
PR merge metrics
No merged PRs in 30d

Description

Currently, we have a use case where we have a graphql implementation (using spqr library) which we are trying to replace with sping-boot-graphql.

```
@Component
class SpringBootImplementation(
private val executionGraphQlService: ExecutionGraphQlService,
private val graphQlSource: GraphQlSource
) : ServiceProvider { ... }

@Component
class SpqrImplementation(
@Qualifier("restGraphql") private val graphql: GraphQL
) : ServiceProvider { ... }

// create a runtimeGraph by stitching service providers
val runtimeGraph = SchemaStitcher.newBuilder()
.service(springBootImplementation)
.service(spqrImplementation)
.build()
.stitchGraph()

graphQLOrchestrator = GraphQLOrchestrator.newOrchestrator()
.runtimeGraph(runtimeGraph).build()
```

Is this possible? Or am I missing something? Let's say the same type is present in both implementations, including the same exact queries. In SpringBootImplementation we will add gradually and replace existing implementations from SpqrImplementation

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.