Skip to content

Composition of Root type field returning Root type fails #891

@maxrad82

Description

@maxrad82

Component(s)

composition

Component version

latest

wgc version

0.57.7

controlplane version

latest

router version

latest

What happened?

Hi,

when trying to compose 2 subgraphs:

subgraph #1

type Mutation {
impersonate(...): Mutation
}

subgraph #2

type Book {
id: ID!
}

type Mutation {
upsertBook(..): Book
}

The composition fails complaining that we should either transform the Mutation type to an Entity with an @key field or declaring @Shareable impersonate in the 2 subgraphs (we can't do this)

I assume that it is a issue related to Root types, the composition succeeds in Apollo graph os

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Package Manager: pnpm, npm, yarn, etc
Compiler(if manually compiled): (e.g., "go 14.2")

Router configuration

No response

Router execution config

No response

Log output

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

awaiting investigationThe issue has been assigned to a team member for investigation.bugSomething isn't workinginternally-reviewedThe issue has been reviewed internally.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions