Hi, I want to refactor my app with ts and i am quite confused with the subscription described in this example. I am used to using subscribe and resolve in subscription, like below:
const Subscription = {
fooSub: {
subscribe:
resolve:
},
}
And in this example it is like
const Subscription: SubscriptionResolvers.Type<TypeMap> = {
fooSub: parent => null
};
Can someone explain the flow here? Thanks in advance.
Hi, I want to refactor my app with ts and i am quite confused with the subscription described in this example. I am used to using
subscribeandresolvein subscription, like below:And in this example it is like
Can someone explain the flow here? Thanks in advance.