Skip to content

Ktor: Multiple GraphQL Endpoints with seperate schemas #162

@MaaxGr

Description

@MaaxGr

I want to build a large scale app ktor with multiple graphql endpoints.

When i install the GraphQL Feature there is only the possibility to specify one endpoint

install(GraphQL) {
     endpoint = "/employeedata/graphql"
}

My first idea was to install the feautre a second time with another endpoint+schema-Handler

install(GraphQL) {
     endpoint = "/usermanagement/graphql"
}

Unfortunately i get the following exception:
Exception in thread "main" io.ktor.application.DuplicateApplicationFeatureException: Conflicting application feature is already installed with the same key as KGraphQL

Is there anything i can do at the moment?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions