Neo4j::Types - Common Neo4j type system
version 2.00
Packages in this distribution represent Cypher types for use with the Neo4j graph database system. As a user of a Neo4j driver distribution supporting these types, you can find details on the available methods for each type and their behaviour in the documentation of the individual modules.
Neo4j::Types::Node
Neo4j::Types::Relationship
Neo4j::Types::Path
Neo4j::Types::ByteArray
Neo4j::Types::DateTime
Neo4j::Types::Duration
Neo4j::Types::Point
The module Neo4j::Types itself contains no code, but you can use it as a shortcut to load all the modules listed above.
use
Additionally, generic implementations are offered for those types which Neo4j allows to be used as a query parameter. See Neo4j::Types::Generic for details.
Given a Perl scalar, you can determine whether it represents a specific type of Neo4j value by using the isa operator.
isa
use v5.36; $is_node = $value isa Neo4j::Types::Node; # Older versions of Perl: use Scalar::Util 'blessed'; $is_node = blessed $value && $value->isa( 'Neo4j::Types::Node' );
Version 2 of Neo4j::Types is targeting Perl v5.16 and newer. Patches will be accepted to address issues with Perl versions as old as v5.10.1 as long as practical.
The Neo4j Cypher Manual describes a variety of types. For a discussion of typical ways to implement these in Perl, see Neo4j::Types::ImplementorNotes.
Neo4j::Bolt
Neo4j::Driver
"Values and types" in the Neo4j Cypher Manual
Arne Johannessen <ajnn@cpan.org>
If you contact me by email, please make sure you include the word "Perl" in your subject header to help beat the spam filters.
This software is Copyright (c) 2021-2023 by Arne Johannessen.
This is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0 or (at your option) the same terms as the Perl 5 programming language system itself.
To install Neo4j::Types, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Neo4j::Types
CPAN shell
perl -MCPAN -e shell install Neo4j::Types
For more information on module installation, please visit the detailed CPAN module installation guide.