Module: Neoon::Client::Indexing
- Included in:
- Connection
- Defined in:
- lib/neoon/client/indexing.rb
Instance Method Summary collapse
Instance Method Details
#create(label, keys = []) ⇒ Object
10 11 12 13 14 |
# File 'lib/neoon/client/indexing.rb', line 10 def create(label, keys = []) keys.each do |key| Neoon.db.cypher("CREATE INDEX ON :#{label}(#{key.to_s.downcase})") end end |