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
cypher param objects bug
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mat Tyndall  
View profile  
 More options Oct 4 2012, 12:39 am
From: Mat Tyndall <mat.tynd...@gmail.com>
Date: Wed, 3 Oct 2012 21:39:15 -0700 (PDT)
Local: Thurs, Oct 4 2012 12:39 am
Subject: cypher param objects bug

This cypher bug has been driving me crazy and I finally nailed it down.

Fails:
{"query":"START n=node(0) CREATE UNIQUE n-[:test]->({TEST}) RETURN
*","params":{"TEST":{"name":"test"}}}

Works
{"query":"START n=node(0) CREATE UNIQUE n-[:test]->(test {TEST}) RETURN
*","params":{"TEST":{"name":"test"}}}

Basically, the query fails if there is no name for the node ({TEST}). When
there is a name (test {TEST}), it works.

Gonna post this on github.

-Mat


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mat Tyndall  
View profile  
 More options Oct 4 2012, 1:48 am
From: Mat Tyndall <mat.tynd...@gmail.com>
Date: Wed, 3 Oct 2012 22:48:54 -0700 (PDT)
Local: Thurs, Oct 4 2012 1:48 am
Subject: Re: cypher param objects bug

I'm also trying this with an array with the following results:

Fails:
POST /db/data/cypher {"query":"START n=node(0) CREATE UNIQUE
n-[:test]->({TEST}) RETURN *","params":{"TEST":[{"name":"test"}]}}
POST /db/data/cypher {"query":"START n=node(0) CREATE UNIQUE
n-[:test]->(test {TEST}) RETURN *","params":{"TEST":[{"name":"test"}]}}
POST /db/data/cypher {"query":"START n=node(0) CREATE UNIQUE
n-[:test]->(test {TEST}) RETURN
*","params":{"TEST":[{"name":"test1"},{"name":"test2"}]}}

POST /db/data/cypher {"query":"START n=node(0) CREATE n-[:test]->({TEST})
RETURN *","params":{"TEST":[{"name":"test1"},{"name":"test2"}]}}
POST /db/data/cypher {"query":"START n=node(0) CREATE n-[:test]->(test
{TEST}) RETURN *","params":{"TEST":[{"name":"test1"},{"name":"test2"}]}}

Works:
POST /db/data/cypher {"query":"START n=node(0) CREATE n-[:test]->(test
{TEST}) RETURN *","params":{"TEST":[{"name":"test"}]}}

-Mat


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »