Closed krzyczak closed 2 years ago
When connecting to Neo4j Aura some inexes have labelsOrTypes set to []. This causes https://github.com/neo4jrb/activegraph/blob/master/lib/active_graph/core/schema.rb#L49 to throw NoMethodError: undefined method error.
[]
NoMethodError: undefined method
This pull introduces/changes:
row[:labelsOrTypes]
row["name"]
merged otherwise
When connecting to Neo4j Aura some inexes have labelsOrTypes set to
[]
. This causes https://github.com/neo4jrb/activegraph/blob/master/lib/active_graph/core/schema.rb#L49 to throwNoMethodError: undefined method
error.This pull introduces/changes:
row[:labelsOrTypes]
is an empty array. It returnsrow["name"]
in such case.