title: D3 select specific node by data
body: <p><strong>Scenario</strong> </p>
  
  <p>I have a D3 tree drawn with 4 nodes. I want to select a node by its data -> uuid </p>
  
  <p><strong>Current Solution</strong></p>
  
  <pre><code>console.log(
    Object.keys(d3.selectAll('.node-circle').filter(d =&gt; d.data.id == '55ac64b257c14bbf9d7525cf0b095f60'))
  )
  console.log(Object.keys(d3.select('.node-circle').datum()))
  </code></pre>
  
  <p>The second console.log returns <code>['data', 'height', 'depth', 'parent', 'x', 'y', 'id', 'x0', 'y0']</code> , while the first returns <code>['_groups', '_parents']</code> </p>
  
  <p><strong>Question</strong></p>
  
  <p>How can I get the same data from the filtered nodes as from the single-selected node?</p>