Submit the Subscriptions

Learn how to submit subscriptions in GraphQL.

Basic subscription

Now that we can create orders, we’re at the perfect spot to introduce the first basic subscription. This subscription will support pushing these orders as they’re created out to subscribed clients. We’ll first need to define a subscription field in our schema, and then we’ll also need a way to trigger this subscription when the :place_order mutation runs:

Get hands-on with 1200+ tech skills courses.