The next composition challenge will unlock at midnight (UTC) on December, 7th
00
Days00
Hours00
Minutes00
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 | OBJECTdirective @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_DEFINITIONdirective @key(fields: openfed_FieldSet!, resolvable: Boolean = true) on INTERFACE | OBJECTdirective @shareable on FIELD_DEFINITION | OBJECT
type WunderGraph @key(fields: "id") { id: ID! gaveToMe: Swans! @shareable}
type Swans { quantity: Int! areSwimming: Boolean! @override(from: "subgraph1")}