Skip to content

YassineElbouchaibi/cosmo-issue-1440-repro

Repository files navigation

Steps to repro wundergraph/cosmo#1440

Broken (Composed in specific order #1)

  1. npm i
  2. npm run dev:subgraphs
  3. npx wgc router compose -i cosmo-compose-broken.yaml -o cosmo-router.json
  4. docker run -it --rm --volume ./cosmo-router.json:/router.json --volume ./cosmo-config.yaml:/config.yaml --network host -e LISTEN_ADDR=0.0.0.0:3003 ghcr.io/wundergraph/cosmo/router:0.151.1

Works (Composed in specific order #2)

  1. npm i
  2. npm run dev:subgraphs
  3. npx wgc router compose -i cosmo-compose-works.yaml -o cosmo-router.json
  4. docker run -it --rm --volume ./cosmo-router.json:/router.json --volume ./cosmo-config.yaml:/config.yaml --network host -e LISTEN_ADDR=0.0.0.0:3003 ghcr.io/wundergraph/cosmo/router:0.151.1

Query

The query below will cause the router to crash:

query {
  a {
    id
    fieldFromA
  	... on A1 {
      fieldFromA1
      fieldFromB
    }
    
    ... on A2 {
      fieldFromA2
    }
  }
  b {
    id
    fieldFromB
  }
  c {
    id
    fieldFromC
    a {
      id
      ... on A1 {
        fieldFromA1
      }
    }
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published