Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion release 2.0.0.alpha.7

Date: Thu, 19 Apr 2012 23:41:47 -0700 (PDT)
From: Cyprian Kowalczyk <cyprian...@gmail.com>
To: neo4jrb@googlegroups.com
Message-ID: <788904.149.1334904107534.JavaMail.geo-discussion-forums@ynku11>
In-Reply-To: <CAMiAGze-j+m6H3xvdonbQNxLKQCm4GAXmLbDZS2fZ-jbK6TBDw@mail.gmail.com>
References: <CAMiAGze-j+m6H3xvdonbQNxLKQCm4GAXmLbDZS2fZ-jbK6TBDw@mail.gmail.com>
Subject: Re: release 2.0.0.alpha.7
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_147_8628408.1334904107534"

------=_Part_147_8628408.1334904107534
Content-Type: multipart/alternative; 
	boundary="----=_Part_148_28962630.1334904107534"

------=_Part_148_28962630.1334904107534
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

How do I translate the following query to Cypher DSL:

       Neo4j._query("
         START u=node({user_id}), p=node({place_id}) 
         MATCH 
          u-[:`User#rc`]->rc<-[:`RS#rc`]-rs<-[:`Place#rs`]-p,
          rc<-[:active]-()
         WHERE rc._classname ?= 'RC' 
         RETURN rc", 
         :user_id => self.neo_id,
         :place_id => place.neo_id
       )

------=_Part_148_28962630.1334904107534
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

How do I translate the following query to Cypher DSL:<div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp;Neo4j._query("<br><div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;START u=node({user_id}), p=node({place_id})&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MATCH&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; u-[:`User#rc`]-&gt;rc&lt;-[:`RS#rc`]-rs&lt;-[:`Place#rs`]-p,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rc&lt;-[:active]-()</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WHERE rc._classname ?= 'RC'&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;RETURN rc",&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:user_id =&gt; self.neo_id,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:place_id =&gt; place.neo_id</div><div>&nbsp; &nbsp; &nbsp; &nbsp;)</div></div></div>
------=_Part_148_28962630.1334904107534--

------=_Part_147_8628408.1334904107534--