cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Get value from Extract() functions in Java

ardan7779
Node Clone

I need to get value from path that I will use one of the properti from the relations, so I use extract to do it. The cypher runs good when I try in the neo4j browser.

I use record.get("params").asString();
also i try ti use asPath().toString();

But, it is getting error when I run it in my java (Android). This is the error like this:
org.neo4j.driver.v1.exceptions.value.Uncoercible: Cannot coerce LIST OF ANY? to Java String.

How to get the value..? thanks.

1 ACCEPTED SOLUTION

ardan7779
Node Clone

Sorry, because I can't delete my own question, and this problem can be resolved, then I answer it myself.

just use
record.get("params").asObject().toString();

because the return value is as object.

View solution in original post

1 REPLY 1

ardan7779
Node Clone

Sorry, because I can't delete my own question, and this problem can be resolved, then I answer it myself.

just use
record.get("params").asObject().toString();

because the return value is as object.