In addition to queries and muations, you can leverage your Sqlmancer client for resolving subscriptions as well. Here's a simple example for a mutation that creates a Customer record:
Notice that we only publish the ID of the created record. Many tutorials show publishing the entire object and then omit the
resolve function altogether. That would work here too, since our API is very simple. However, by applying the pattern above, we can ensure that the customer object returned by the subscription can be arbitrarily complex (for example, including a number of relationship fields, with those fields including relationship fields, etc.) while still only generating the minimal SQL query necessary.