The next composition challenge will unlock at midnight (UTC) on May, 20th

00
Days
00
Hours
00
Minutes
00
Seconds
Go back

Challenge #9

Will it compose?

Subgraph 1

# The name of this subgraph is "subgraph1"
directive @key(fields: openfed_FieldSet!, resolvable: Boolean = true) on INTERFACE | OBJECT
directive @shareable on FIELD_DEFINITION | OBJECT
type Query {
onTheNinthDayOfGraphmas: WunderGraph!
}
type WunderGraph @key(fields: "id") {
id: ID!
gaveToMe: Swans! @shareable
}
type Swans {
areHonking: Boolean!
}

Subgraph 2

# The name of this subgraph is "subgraph2"
directive @override(from: String!) on FIELD_DEFINITION
directive @key(fields: openfed_FieldSet!, resolvable: Boolean = true) on INTERFACE | OBJECT
directive @shareable on FIELD_DEFINITION | OBJECT
type WunderGraph @key(fields: "id") {
id: ID!
gaveToMe: Swans! @shareable
}
type Swans {
quantity: Int!
areSwimming: Boolean! @override(from: "subgraph1")
}