module Neography::Rest::SchemaIndexes
Public Instance Methods
create_schema_index(label, keys = [])
click to toggle source
# File lib/neography/rest/schema_indexes.rb, line 14 def create_schema_index(label, keys = []) options = { :body => ( { :property_keys => keys } ).to_json, :headers => json_content_type } @connection.post("/schema/index/%{label}" % {:label => label}, options) end
delete_schema_index(label, index)
click to toggle source
# File lib/neography/rest/schema_indexes.rb, line 10 def delete_schema_index(label, index) @connection.delete("/schema/index/%{label}/%{index}" % {:label => label, :index => index}) end
get_schema_index(label)
click to toggle source
# File lib/neography/rest/schema_indexes.rb, line 6 def get_schema_index(label) @connection.get("/schema/index/%{label}" % {:label => label}) end