neo4jrb / neo4jrb_spatial

Basic integration between Neo4j.rb and Neo4j Spatial
12 stars 12 forks source link

Error: Expected a parameter named layer #20

Open pmackay opened 7 years ago

pmackay commented 7 years ago

This exception is happening when I call ActiveNode::Spatial.withinDistance:

Neo4j::Core::CypherSession::CypherError (  Cypher error:
  Neo.ClientError.Statement.ParameterMissing: Expected a parameter named layer
):

I checked inside lib/neo4j/active_node/spatial.rb and the within_distance distance scope is defining the layer name with this line:

layer = model.spatial_layer.name || layer_name

So I'm not sure why the call to Neo4j::ActiveBase.current_session.within_distance would fail.

I am using Neo4j 3.1.4 and neo4j-spatial-0.24-neo4j-3.1.1-server-plugin.

@TyGuy any ideas?