0
データベースに対してサイファークエリを実行すると、エラーVariable title not defined
が表示されます。私にとって狂っているのは、その変数を供給しているということです。それとも少なくとも私は自分がだと思った。 CypherへのHTTP POSTは次のようになります。変数のタイトルが定義されていません
POST http://.../db/data/cypher HTTP/1.1
Connection: Keep-Alive
Content-Type: text/plain; charset=utf-8
Accept: application/json
Accept-Encoding: gzip, deflate
Authorization: Basic ...
User-Agent: ...
X-Stream: true
Content-Length: 955
Host: ...
{
"query": "MATCH (n:Event {id: {id}}) SET title = {title}, location = {location}, shortDescription = {shortDescription}, longDescription = {longDescription}, eventDates = {eventDates}, puchaseUrl = {purchaseUrl}, infoUrl = {infoUrl}, images = {images} RETURN n",
"params": {
"title": "Our First Event", <<==== title supplied here
"location": "The location",
"shortDescription": "The short description.",
"longDescription": "The long description is longer.",
"eventDates": [
{
"date": "2016-09-01T12:00:00",
"duration": 120,
"Id": 0
},
{
"date": "2016-09-02T14:00:00",
"duration": 120,
"Id": 0
}
],
"purchaseUrl": null,
"infoUrl": null,
"images": [
{
"url": "http://sandwichevents.org.uk/wp-content/uploads/2016/02/many-people-music-event-concert-awesome.jpg",
"name": "event9_image1.jpg",
"altText": "Something here.",
"isDefault": false,
"Id": 0
},
{
"url": "http://www.event360.com/wp-content/uploads/2015/05/1.full-size-promo-62sm.jpg",
"name": "event9_image2.jpg",
"altText": "Something else here.",
"isDefault": true,
"Id": 0
}
],
"Id": 9
}
}
私がここで間違ったことを誰かに教えてもらえますか?
更新:あなたがnull
に"eventDates"
と"images"
を設定した場合、それも失敗しました。任意の複雑なデータ構造を子として残すことができます。
これを今すぐテストしてください。 –