2017-02-06 5 views
0

私はNeo4jとCypherを使い始めました。私は残りのAPI呼び出しを使用してPostmanからノードを作成しようとしています。ポストマンツールを使ってNeo4jでノードを作成

郵便受けの電話を送ったとき、ステータス:201 Createdが表示されます。 しかし、ノードが作成されているかどうかを確認するためにMATCH呼び出しを送信すると、空の応答が返されます。

REST CALL

enter image description here

応答CREATE:

{ 
    "commit": "http://localhost:7474/db/data/transaction/43/commit", 
    "results": [ 
    { 
     "columns": [], 
     "data": [], 
     "stats": { 
     "contains_updates": true, 
     "nodes_created": 1, 
     "nodes_deleted": 0, 
     "properties_set": 2, 
     "relationships_created": 0, 
     "relationship_deleted": 0, 
     "labels_added": 1, 
     "labels_removed": 0, 
     "indexes_added": 0, 
     "indexes_removed": 0, 
     "constraints_added": 0, 
     "constraints_removed": 0 
     } 
    } 
    ], 
    "transaction": { 
    "expires": "Mon, 06 Feb 2017 21:03:06 +0000" 
    }, 
    "errors": [] 
} 

しかし、私はWebクライアントからそれを作成した場合、私はREST APIからの私のget呼び出しでそれらを見ることができます。 enter image description here

答えて

0

ああ回答しました。 CREATEのためのURLは、あなたが戻って同じコールでオブジェクトを取得する必要がある場合、あなたはこの

{ 
    "statements": [ 
    { 
     "statement": "CREATE (a:Person { name: 'Adam', title: 'some guy' }) RETURN a", 
     "parameters": {}, 
     "resultDataContents": [ 
     "row", 
     "graph" 
     ], 
     "includeStats": true 
    } 
    ] 
} 
を行うことができ、また http://localhost:7474/db/data/transaction/commit 代わりの http://localhost:7474/db/data/transaction/

です

関連する問題