Slide 66
Slide 66 text
The Resolver Map for a
field on the Subscription
type takes an object,
not a function like
Query and Mutation.
const resolvers = {
Query: {
matchesQuery: (parent, args, context) => {...}
},
};
const resolvers = {
Subscription: {
matchUpdates: {
subscribe: () => {...},
resolve: (payload, args, context) => {...}
},
},
};
Function
Object with
“subscribe” and
“resolve” fields
@_kamlesh_ @peri_nikhil