module Neo4j::Shared::SerializedProperties

This module adds the ‘serialize` class method. It lets you store hashes and arrays in Neo4j properties. Be aware that you won’t be able to search within serialized properties and stuff use indexes. If you do a regex search for portion of a string property, the search happens in Cypher and you may take a performance hit.

See type_converters.rb for the serialization process.

Public Instance Methods

serializable_hash(*args) click to toggle source
Calls superclass method
   # File lib/neo4j/shared/serialized_properties.rb
14 def serializable_hash(*args)
15   super.merge(id: id)
16 end
serialized_properties() click to toggle source
   # File lib/neo4j/shared/serialized_properties.rb
10 def serialized_properties
11   self.class.serialized_properties
12 end