Skip to content

subscription confusion #437

@tzjoke

Description

@tzjoke

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions