ClassMethods¶
Constants¶
Methods¶
#base_class
#blank?
- #constraint
Creates a neo4j constraint on this class for given property
+ show/hide code
#count
- #delete_all
Deletes all nodes and connected relationships from Cypher.
+ show/hide code
- #destroy_all
Returns each node to Ruby and calls destroy. Be careful, as this can be a very slow operation if you have many nodes. It will generate at least one database query per node in the database, more if callbacks require them.
+ show/hide code
#drop_constraint
#empty?
#exists?
- #find
Returns the object with the specified neo4j id.
+ show/hide code
- #find_by
Finds the first record matching the specified conditions. There is no implied ordering so if order matters, you should specify it yourself.
+ show/hide code
- #find_by!
Like find_by, except that if no record is found, raises a RecordNotFound error.
+ show/hide code
#find_each
#find_in_batches
- #first
Returns the first node of this class, sorted by ID. Note that this may not be the first node created since Neo4j recycles IDs.
+ show/hide code
- #index
Creates a Neo4j index on given property
This can also be done on the property directly, see Neo4j::ActiveNode::Property::ClassMethods#property.
+ show/hide code
#index?
#indexed_properties
- #last
Returns the last node of this class, sorted by ID. Note that this may not be the first node created since Neo4j recycles IDs.
+ show/hide code
#length
#mapped_label
#mapped_label_name
#mapped_label_names
#size