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

00
Days
00
Hours
00
Minutes
00
Seconds
Go back

Challenge #7

Will it compose?

Subgraph 1

directive @key(fields: openfed_FieldSet!, resolvable: Boolean = true) on INTERFACE | OBJECT
directive @shareable on FIELD_DEFINITION | OBJECT
scalar openfed_FieldSet
type Query {
onTheSeventhDayOfGraphmas: WunderGraph!
}
type WunderGraph
@key(fields: "name")
@key(fields: """
id
gaveToMe {
thingsBrought {
quantity
}
betterThanYours
}
""") {
id: ID!
name: String!
gaveToMe: MilkshakeMaids!
}
enum BoysInYard {
ALL
NONE
}
type Boys {
quantity: BoysInYard!
}
type MilkshakeMaids {
thingsBrought: Boys
betterThanYours: Boolean!
tuitionCharge: Int! @shareable
}

Subgraph 2

directive @key(fields: openfed_FieldSet!, resolvable: Boolean = true) on INTERFACE | OBJECT
directive @shareable on FIELD_DEFINITION | OBJECT
scalar openfed_FieldSet
type WunderGraph @shareable
@key(fields: """
id
gaveToMe {
thingsBrought {
quantity
}
betterThanYours
}
""") {
id: ID!
gaveToMe: MilkshakeMaids!
}
enum BoysInYard {
ALL
NONE
}
type Boys @shareable {
quantity: BoysInYard!
}
type MilkshakeMaids @shareable {
thingsBrought: Boys
betterThanYours: Boolean!
tuitionCharge: Int!
}