Moving On

Although it’s been a relatively simple system that we’ve built here, we’ve successfully built a basic menu and ordering application that provides flexible querying and near real-time data capabilities. More importantly, you learned about the significance of meaningful events in a system that supports subscriptions; GraphQL is able to naturally expose those events in a way that’s in harmony with the way query and mutation operations are handled.

Here are a couple of ways to play around with subscriptions further:

  1. Refactor the :place_order subscription to use the trigger macro.
  2. Open GraphiQL in multiple browser windows and play around with subscribing to the same or different fields. Trigger values in your console and see them ...

Get Craft GraphQL APIs in Elixir with Absinthe now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.