title: Get all relationships connected to a node that are NOT of a particular class
body: <p>So you can easily get all connections to a vertex that <em>are</em> of a particular class by querying</p>
  
  <p><code>select from Foo where both() in (#42:1)</code></p>
  
  <p>This will get all the vertices of class <code>Foo</code> that are connected to vertex <code>#42:1</code> with either outbound or inbound links.</p>
  
  <p>However what would be the query if I wanted to get all the vertices that are connected to <code>#42:1</code> that are <em>not</em> instances of class <code>Foo</code>? </p>
  
  <p>Does OrientDB natively support this functionality or would I have to do something like an intersection?</p>