neo4j - How to query nodes that have a version property with Cypher? -


i've got nodes represent maven artifacts, e.g.:

create (n:module {artifactid:"com.my.test", version:"1.0.0"}) return n.artifactid, n.version; 

someone got idea how query nodes in range of e.g. [1.0.0, 2.0.0]? split version 3 properties version_major, version_minor, version_micro, if results in easier query.

if storing version string can rely on lexicographical sort order query:

match (n:module) n.version >= "1.0.0" , n.version <= "2.0.0" return n 

Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -