You've got an extra array bracket around your props.
Try:
POST http://localhost:7474/db/data/cypher {"query":"MERGE (n:Person
{name:{props}.name}) RETURN n","params":
{"props":{"name":"john"},{"name":"Jane"}}}


On Sat, Mar 29, 2014 at 12:42 PM, Alex Frieden <[email protected]> wrote:

> Tried:
> POST http://localhost:7474/db/data/cypher {"query":"MERGE (n:Person
> {name:{props}.name}) RETURN n","params":
> {"props":[{"name":"john"},{"name":"Jane"}]}}
>
> and got response
>
>
>    - ==> 400 Bad Request
>    - ==> {
>    -
>    ==>   "message" : "Developer: Andres claims that: Need something with 
> properties",
>    - ==>   "exception" : "ThisShouldNotHappenError",
>    - ==>   "fullname" : "org.neo4j.helpers.ThisShouldNotHappenError",
>    -
>    ==>   "stacktrace" : [ 
> "org.neo4j.cypher.internal.compiler.v2_0.commands.expressions.Property.apply(Property.scala:42)",
>  
> "org.neo4j.cypher.internal.compiler.v2_0.mutation.PropertySetAction.exec(PropertySetAction.scala:37)",
>  
> "org.neo4j.cypher.internal.compiler.v2_0.mutation.MergeNodeAction$$anonfun$exec$1.apply(MergeNodeAction.scala:68)",
>  
> "org.neo4j.cypher.internal.compiler.v2_0.mutation.MergeNodeAction$$anonfun$exec$1.apply(MergeNodeAction.scala:68)",
>  "scala.collection.immutable.List.foreach(List.scala:318)", 
> "org.neo4j.cypher.internal.compiler.v2_0.mutation.MergeNodeAction.exec(MergeNodeAction.scala:67)",
>  "
>    org.neo4j.cypher.internal.compiler.v2_0.pipes.ExecuteUpdateCommandsPipe.org
>    
> $neo4j$cypher$internal$compiler$v2_0$pipes$ExecuteUpdateCommandsPipe$$exec(ExecuteUpdateCommandsPipe.scala:56)",
>  
> "org.neo4j.cypher.internal.compiler.v2_0.pipes.ExecuteUpdateCommandsPipe$$anonfun$org$neo4j$cypher$internal$compiler$v2_0$pipes$ExecuteUpdateCommandsPipe$$executeMutationCommands$1$$anonfun$apply$2.apply(ExecuteUpdateCommandsPipe.scala:45)",
>  
> "org.neo4j.cypher.internal.compiler.v2_0.pipes.ExecuteUpdateCommandsPipe$$anonfun$org$neo4j$cypher$internal$compiler$v2_0$pipes$ExecuteUpdateCommandsPipe$$executeMutationCommands$1$$anonfun$apply$2.apply(ExecuteUpdateCommandsPipe.scala:45)",
>  "scala.collection.Iterator$$anon$13.hasNext(Iterator.scala:371)", 
> "scala.collection.Iterator$$anon$13.hasNext(Iterator.scala:371)", 
> "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)",
>  "scala.collection.Iterator$class.foreach(Iterator.scala:727)", 
> "org.neo4j.cypher.internal.compiler.v2_0.ClosingIterator.foreach(ClosingIterator.scala:33)",
>  "scala.collection.generic.Growable$class.$plus$plus$eq(Growable.scala:48)", 
> "scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:176)", 
> "scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:45)", 
> "scala.collection.TraversableOnce$
>    class.to(TraversableOnce.scala:273)", "
>    org.neo4j.cypher.internal.compiler.v2_0.ClosingIterator.to
>    (ClosingIterator.scala:33)", 
> "scala.collection.TraversableOnce$class.toList(TraversableOnce.scala:257)", 
> "org.neo4j.cypher.internal.compiler.v2_0.ClosingIterator.toList(ClosingIterator.scala:33)",
>  
> "org.neo4j.cypher.internal.compiler.v2_0.EagerPipeExecutionResult.<init>(EagerPipeExecutionResult.scala:30)",
>  
> "org.neo4j.cypher.internal.compiler.v2_0.executionplan.ExecutionPlanBuilder$$anonfun$3.apply(ExecutionPlanBuilder.scala:137)",
>  
> "org.neo4j.cypher.internal.compiler.v2_0.executionplan.ExecutionPlanBuilder$$anonfun$3.apply(ExecutionPlanBuilder.scala:135)",
>  
> "org.neo4j.cypher.internal.compiler.v2_0.executionplan.ExecutionPlanBuilder$$anon$6.execute(ExecutionPlanBuilder.scala:50)",
>  
> "org.neo4j.cypher.internal.ExecutionPlanWrapperForV2_0.execute(CypherCompiler.scala:93)",
>  "org.neo4j.cypher.ExecutionEngine.execute(ExecutionEngine.scala:61)", 
> "org.neo4j.cypher.ExecutionEngine.execute(ExecutionEngine.scala:65)", 
> "org.neo4j.cypher.javacompat.ExecutionEngine.execute(ExecutionEngine.java:78)",
>  "org.neo4j.server.rest.web.CypherService.cypher(CypherService.java:100)", 
> "java.lang.reflect.Method.invoke(Method.java:601)", 
> "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:722)" ]
>    - ==> }
>    -
>
> Is this a bug?
>
> --
> 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/d/optout.
>

-- 
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/d/optout.

Reply via email to