thatdot / quine

Quine • a streaming graph • https://quine.io • Discord: https://discord.gg/GMhd8TE4MR
https://quine.io
Other
295 stars 39 forks source link

Labels property is visible in Cypher results (including query UI) for the recentNodes procedure #4

Closed emanb29 closed 2 years ago

emanb29 commented 2 years ago

The labels property, an implementation detail of the Cypher interpreter, is visible in Cypher results (including query UI)

Assuming a Quine instance serving on localhost:8080:

http://localhost:8080/#CALL%20recentNodes(1)%20YIELD%20node%20RETURN%20node

This query should return an in-memory node. Note that the returned node represents its labels both as labels (correct) and as a property, __LABEL by default (incorrect -- this should not be observable from Cypher) image

By comparison, querying for a node by ID masks the internal label property, exposing the stored labels only as a Cypher label: image