neo4jrb / activegraph

An active model wrapper for the Neo4j Graph Database for Ruby.
http://neo4jrb.io
MIT License
1.39k stars 276 forks source link

fix: Update ActiveGraph::Core::Schema to to handle labelless indexes #1668

Closed krzyczak closed 2 years ago

krzyczak commented 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.

This pull introduces/changes:

klobuczek commented 2 years ago

merged otherwise