title: How do I implement subscriptions in GraphQL HotChocolate?
body: <p>I am implementing <a href="https://hotchocolate.io/" rel="noreferrer">HotChocolate</a> as part of my ASP.NET API. I'm trying to add subscriptions to the chat portion on my app, however, the documentation on the HotChocolate site is not implemented yet. From what I can tell from other sites/frameworks, I can use the C# <code>IObservable&lt;Chat&gt;</code> as the return type for the subscription method. </p>
  
  <p>Can anyone give me an example of a query method or point me towards another resource? </p>
  
  <pre><code>public async Task&lt;IObservable&lt;Message&gt;&gt; GetMessages(Guid chatId) {
    var messages = ..Get chats;
  
    return messages;
  }
  </code></pre>
  
  <p>However, how does this work from a query standpoint? How do we trigger an event to update this?</p>
  
  <p>Thanks.</p>