neo4j / neo4j-browser

Neo4j Browser is the general purpose user interface for working with Neo4j. Query, visualize, administrate and monitor the database.
https://neo4j.com
GNU General Public License v3.0
699 stars 351 forks source link

Setting parameters in the browser coerces NULL to string #1934

Open thordal-indykite opened 1 year ago

thordal-indykite commented 1 year ago

Description

Browser interprets NULL as a string when setting parameters, but Cypher handles NULL as null

Reproduce Steps

Run

:params {
  foo: NULL
}

foo is now set to the string "NULL"

Expected Behavior

NULL and null are equivalent

Your Environment

Neo4j Browser version: 5.9.0

OskarDamkjaer commented 1 year ago

Hi! We do support properly inferred parameter values when the => syntax is used. You can set get a null parameter like so :param foo => null. We're aware it's confusing that the different syntaxes work differently under the hood and have fixed it in Neo4j Workspace, but it's not made its way back to Neo4j Browser yet