title: Can an Azure Function be triggered by the creation of a DocumentDB document?
body: <p>If I have another <a href="https://azure.microsoft.com/en-us/documentation/articles/functions-bindings-documentdb/" rel="nofollow">Azure Function</a> creating documents, based on some other event (e.g. API call).</p>
  
  <p>Is there support (or will there be) to have an Azure Function run based on a new document being created?</p>
  
  <pre><code>using System;
  public static void Run(object doc, TraceWriter log)
  {
      log.Info($"doc based trigger? ... {doc}");
  }
  </code></pre>
  
  <p>Binding I tried to use, i tried it with and wihout the "id" property, and type <code>documentDB</code> and <code>documentDBTrigger</code> :</p>
  
  <pre><code>"bindings": [
  {
    "type": "documentDB",
    "name": "doc",
    "databaseName": "MyDb",
    "collectionName": "MyCollection",
    "connection": "mydb_DOCUMENTDB",
    "direction": "in"
  }
  </code></pre>