Skip to content

Single subscription for create, update, delete #27

@techknowfile

Description

@techknowfile

I am new to GraphQL as a whole, so I'm sorry if this question is naive.

I was hoping to create a single subscription for CREATED, DELETED, and UPDATED so that it's simple for my client to stay in sync with an object or set of objects, but am not sure exactly how to pull this off. The thought was that the subscription would return another field that informs me of the operation that was executed so that my frontend knows how to handle it.

Any chance you could provide an example of how this could be accomplished if possible?

I'm ultimately going to be trying to create a CUD subscription for a set of different models related to a parent model.
e.g. If a BankAccount object has credit objects and debit objects, and there are many different BankAccounts, I'd want to be able to subscribe to CUD events of ALL of the related objects of a specific Bank Account

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions