Skip to content

Could the FusionGatewayServer have multiple? #72

@pkrittikorn

Description

@pkrittikorn

Hi Guys,

I'm the one who upgrade the HC13 to HC15 firstly I got that the stitching was already gone then I try to implement a Hotchocolate.Fusion.
Mostly in the stitching I have done the schema by using the gql schema files. Right now, I know that for the Fusion I need to change for the subgraph pack by following the "fusion quick start".

The thing that's blocking me is once I would like to implement multiple gateways like order for path /graphql and product for path /gql, I did use the AddFusionGatewayServer 2 times first one for

  • AddFusionGatewayServer("graphql").ConfigureFromFile("gateway-order.fgp")
    and another one for
  • AddFusionGatewayServer("gql").ConfigureFromFile("gateway-product.fgp")

After that I do MapGraphQL like normal. The result that I got is both of the schema which coming it is the "last ConfigureFromFile" in this case is the schema of both graphql and gql is "product".

If I did something wrong or It has another proper way, please suggest me.

Best regards.

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