Thanks Michael, I've fixed this issue, "" was getting concatenated.
-Sukaant Chaudhary On Thu, Dec 19, 2013 at 5:59 PM, Michael Hunger < [email protected]> wrote: > you sent the string "1" you should have sent the number 1 > > { > "query": "START n=node({unode}), m=node(*) MATCH > p=(n)-[r:ADDED_TO_GOOGLE_CALENDAR*]->(m) RETURN m;", > "params": { > "unode": 1 > } > } > > > Also this query doesn't really make sense. > > You probably wanted to write: > > START n=node(1) MATCH p=(n)-[:ADDED_TO_GOOGLE_CALENDAR*]->(m) RETURN m; > > > Michael > > Am 19.12.2013 um 13:26 schrieb Sukaant Chaudhary < > [email protected]>: > > Hi, > Please help me to figure out this problem, this query is working fine in > console. > > *Query In Console:* > START n=node(1), m=node(*) MATCH p=(n)-[r:ADDED_TO_GOOGLE_CALENDAR*]->(m) > RETURN m; > > *Request To Neo4j:* > > { > "query": "START n=node({unode}), m=node(*) MATCH > p=(n)-[r:ADDED_TO_GOOGLE_CALENDAR*]->(m) RETURN m;", > "params": { > "unode": "1" > } > } > > > *Response From Neo4j:* > 400 { > "message" : "Expected a propertycontainer or number here, but got: 1", > "exception" : "CypherTypeException", > "fullname" : "org.neo4j.cypher.CypherTypeException", > "stacktrace" : [ > "org.neo4j.cypher.internal.compiler.v2_0.executionplan.builders.GetGraphElements$.getElements(GetGraphElements.scala:45)", > "org.neo4j.cypher.internal.compiler.v2_0.executionplan.builders.EntityProducerFactory$$anonfun$3$$anonfun$applyOrElse$3.apply(EntityProducerFactory.scala:77)", > "org.neo4j.cypher.internal.compiler.v2_0.executionplan.builders.EntityProducerFactory$$anonfun$3$$anonfun$applyOrElse$3.apply(EntityProducerFactory.scala:76)", > "org.neo4j.cypher.internal.compiler.v2_0.executionplan.builders.EntityProducerFactory$$anon$1.apply(EntityProducerFactory.scala:38)", > "org.neo4j.cypher.internal.compiler.v2_0.executionplan.builders.EntityProducerFactory$$anon$1.apply(EntityProducerFactory.scala:37)", > "org.neo4j.cypher.internal.compiler.v2_0.pipes.StartPipe$$anonfun$internalCreateResults$1.apply(StartPipe.scala:34)", > "org.neo4j.cypher.internal.compiler.v2_0.pipes.StartPipe$$anonfun$internalCreateResults$1.apply(StartPipe.scala:33)", > "scala.collection.Iterator$$anon$13.hasNext(Iterator.scala:371)", > "scala.collection.Iterator$$anon$13.hasNext(Iterator.scala:371)", > "scala.collection.Iterator$$anon$13.hasNext(Iterator.scala:371)", > "scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:327)", > "scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:327)", > "org.neo4j.cypher.internal.compiler.v2_0.ClosingIterator$$anonfun$hasNext$1.apply$mcZ$sp(ClosingIterator.scala:38)", > "org.neo4j.cypher.internal.compiler.v2_0.ClosingIterator$$anonfun$hasNext$1.apply(ClosingIterator.scala:37)", > "org.neo4j.cypher.internal.compiler.v2_0.ClosingIterator$$anonfun$hasNext$1.apply(ClosingIterator.scala:37)", > "org.neo4j.cypher.internal.compiler.v2_0.ClosingIterator.failIfThrows(ClosingIterator.scala:91)", > "org.neo4j.cypher.internal.compiler.v2_0.ClosingIterator.hasNext(ClosingIterator.scala:37)", > "org.neo4j.cypher.internal.compiler.v2_0.PipeExecutionResult.hasNext(PipeExecutionResult.scala:166)", > "scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:327)", > "scala.collection.convert.Wrappers$IteratorWrapper.hasNext(Wrappers.scala:29)", > "org.neo4j.cypher.internal.compiler.v2_0.PipeExecutionResult$$anon$1.hasNext(PipeExecutionResult.scala:74)", > "org.neo4j.helpers.collection.ExceptionHandlingIterable$1.hasNext(ExceptionHandlingIterable.java:44)", > "org.neo4j.helpers.collection.IteratorWrapper.hasNext(IteratorWrapper.java:42)", > "org.neo4j.server.rest.repr.ListRepresentation.serialize(ListRepresentation.java:62)", > "org.neo4j.server.rest.repr.Serializer.serialize(Serializer.java:75)", > "org.neo4j.server.rest.repr.MappingSerializer.putList(MappingSerializer.java:61)", > "org.neo4j.server.rest.repr.CypherResultRepresentation.serialize(CypherResultRepresentation.java:83)", > "org.neo4j.server.rest.repr.MappingRepresentation.serialize(MappingRepresentation.java:41)", > "org.neo4j.server.rest.repr.OutputFormat.assemble(OutputFormat.java:215)", > "org.neo4j.server.rest.repr.OutputFormat.formatRepresentation(OutputFormat.java:147)", > "org.neo4j.server.rest.repr.OutputFormat.response(OutputFormat.java:130)", > "org.neo4j.server.rest.repr.OutputFormat.ok(OutputFormat.java:67)", > "org.neo4j.server.rest.web.CypherService.cypher(CypherService.java:101)", > "java.lang.reflect.Method.invoke(Method.java:606)", > "org.neo4j.server.rest.transactional.TransactionalRequestDispatcher.dispatch(TransactionalRequestDispatcher.java:132)", > "org.neo4j.server.rest.security.SecurityFilter.doFilter(SecurityFilter.java:112)", > "java.lang.Thread.run(Thread.java:724)" ] > } > > -Sukaant Chaudhary > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
