Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Gremlin Error: set a list property
This works...
```shell
$ curl -X POST -d '{"script": "return cities", "params":{"cities": ["dallas", "austin"]} }' -H "Content-Type: application/json" http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script
[ "dallas", "austin" ]
```
This doesn't...
```shell
$ curl -X POST -d '{"script": "neo4j = g.getRawGraph(); g.setMaxBufferSize(0); g.startTransaction(); v = neo4j.createNode(); v.setProperty(\"cities\",cities); g.stopTransaction(TransactionalGraph.Conclusion.SUCCESS); return v; ", "params":{"cities": ["dallas", "austin"]} }' -H "Content-Type: application/json" http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script
"javax.script.ScriptException: java.lang.IllegalArgumentException: Unknown property type on: [dallas, austin], class java.util.ArrayList"
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.