Skip to content

rowe-stamy/FusionBug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build the graph

dotnet fusion subgraph config set http --url http://localhost:5000/graphql -w .\ServiceA

dotnet fusion subgraph config set name ServiceA -w .\ServiceA

dotnet fusion subgraph config set http --url http://localhost:5001/graphql -w .\ServiceB

dotnet fusion subgraph config set name ServiceB -w .\ServiceB

dotnet run --project .\ServiceA -- schema export --output subgraph.schema.graphql

dotnet run --project .\ServiceB -- schema export --output subgraph.schema.graphql

dotnet fusion subgraph pack -w .\ServiceA -s .\ServiceA\subgraph.schema.graphql

dotnet fusion subgraph pack -w .\ServiceB -s .\ServiceB\subgraph.schema.graphql

dotnet fusion compose -p .\Gateway\gateway -s .\ServiceA

dotnet fusion compose -p .\Gateway\gateway -s .\ServiceB

Example queries

The following query is causing an error:

query problem {
  foos {
    commonField
    barByCommonField {
      barField
    }
    fizzByCommonField {
      fizzField
    }
  }
}

The following queries work as expected:

query ok1 {
  foos {
    commonField
    fizzByCommonField {
      fizzField
    }
  }
}

query ok2 {
  foos {
    commonField
    barByCommonField {
      barField
    }
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages