title: What is the Tinkerpop equivalent of Neo4j match/join on property values
body: <p>I have a <code>Neo4j</code> <code>Cypher</code> query. I am trying to understand how to do the same query in <code>Tinkerpop</code>/<code>Gremlin</code> (not <code>Neo4j</code> implementation).</p>
  
  <pre><code>start
    f=node:node_auto_index('_Element:field OR _Element:dynamicField'),
    t=node:node_auto_index(_Element = 'fieldType')
  where
    f.type=t.name
  return
    f, t
  </code></pre>
  
  <p>Basically, I get two types of nodes (labels/types/whatever) and try to find where one points to another via property value match. I'll then create a real relationship using the results.</p>
  
  <p>The graph is not very large, up to several thousand nodes.</p>