Selector on property of data associated with a element
<p>I'm trying to use a selector to filter nodes in cytoscape.js depending on data associated with the nodes.</p>

<p>I seems like it is not possible to filter data that is "sub"-property of a property added as data to a node.</p>

<pre><code>cy.nodes("[type = 'typeA']")          - works
cy.nodes("[metadata.type = 'typeA']") - fails
</code></pre>

<p>I have tried escaping the "\\." but haven't been able to get it to work.</p>

<pre><code>{
  "data": {
    "id": "run-jmh",
    "metadata": {
      "type": "typeA",
    }
    "type": "typeA",
  },
  "position": {
    "x": 550,
    "y": 23
  },
  "group": "nodes",
  "removed": false,
  "selected": false,
  ...
}
</code></pre>