title: Creating edge collection in ArangoDb FOXX app
body: <p>Can somebody help me with following issue.
  I'm writing custom FOXX app in ArangoDB and I need to create edge collection.
  With <code>db._create("example");</code> I can create document collection, but I don't know how to change the type of it. I've tried <code>db._create("example", {type: "edge"});</code> but it doesn't work.</p>
  
  <p>In <a href="https://www.arangodb.org/manuals/current/HandlingCollections.html#HandlingCollectionsIntro" rel="noreferrer">documentation</a> is written</p>
  
  <blockquote>
    <p>Collections have a type that is specified by the user when the collection is created. There are currently two types: document and edge. The default type is document.</p>
  </blockquote>
  
  <p>How can I achieve that?</p>