Many thanks, Michael! That worked like a charm!
The only thing I kept messing up was adding either a semi-colon or the 
"env" after the variable declaration.

For anyone else interested:

(First Statement - No semi-colon! - Hit enter when done)
export eventTitle="Book Fair" 

(Second Statement)
MATCH (p:Place)-[]-(e:Event) WHERE e.title = *{eventTitle}* RETURN p.name, 
e.title, e.start, e.end;





On Tuesday, April 1, 2014 3:22:41 PM UTC-5, Michael Hunger wrote:
>
> Bryan, 
>
> the shell supports cypher params as "environment variables"
>
> everything that you see with "env" is passed to cypher as params
>
> you can "export" such variables, in your case:
>
> export *eventTitle="Book Fair"*
> *env*
> MATCH (p:Place)-[]-(e:Event) WHERE e.title = *{eventTitle}* RETURN p.name, 
> e.title, e.start, e.end;
>
>
>
> On Tue, Apr 1, 2014 at 9:53 PM, Bryan Jones <[email protected]<javascript:>
> > wrote:
>
>> Hello,
>>
>> I'm working out of the *Neo4j 2.0.1 console* (
>> http://localhost:7474/webadmin/#/console/), and I am trying to test 
>> cypher parameters. 
>> Is there any way to do this solely within the console? 
>> For instance, the following two queries should return the same results 
>> (The 2nd query is using psuedo-code).
>>
>> *(1) Cypher that will work:*
>> MATCH (p:Place)-[]-(e:Event) WHERE e.title = "Book Fair" RETURN p.name, 
>> e.title, e.start, e.end;
>>
>> *(2) Cypher with parm/variable psuedo-code:*
>> DECLARE *"eventTitle"* = "Book Fair"
>> MATCH (p:Place)-[]-(e:Event) WHERE e.title = *{eventTitle}* RETURN p.name, 
>> e.title, e.start, e.end;
>>
>> Thanks!
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Neo4j" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to