ClassMethods

Constants

Methods

#base_class

+ show/hide code

#before_remove_const

+ show/hide code

#blank?

+ show/hide code
#constraint

Creates a neo4j constraint on this class for given property

+ show/hide code

#count

+ show/hide code
#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

+ show/hide code

#drop_index

+ show/hide code

#empty?

+ show/hide code

#exists?

+ show/hide code
#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

+ show/hide code

#find_in_batches

+ show/hide code
#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?

+ show/hide code

#indexed_properties

+ show/hide code
#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

+ show/hide code

#mapped_label

+ show/hide code

#mapped_label_name

+ show/hide code

#mapped_label_names

+ show/hide code

#size

+ show/hide code