title: How to search multiple values for same propertykey in gremlin
body: <p>What is the best way to get values with same property key?</p>
  
  <p>EDIT: Sorry for changing the question my requirement was to get an employee from either of the departments</p>
  
  <p>I need to fetch all the the employees who work for IT or Sales departments and are being managed by manager with id 123.</p>
  
  <p>I have used </p>
  
  <pre><code>g.V().has('managerId',123).out('manages').as('employee')
     .out('worksFor').has('departmentName','IT','Sales')
     .select('employee')
  </code></pre>
  
  <p>where <code>out('worksAt')</code> gives department.</p>
  
  <p>Can we do this in a <code>has()</code> step or should we use <code>union()</code> step like</p>
  
  <pre><code>g.V().has('managerId',123).out('manages').as('employee').out('worksFor')
      .union(__.has('departmentName','IT'),__.has('departmentName','Sales')
      .select('employee')
  </code></pre>