-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathcypherQueryExample.txt
More file actions
39 lines (33 loc) · 1.89 KB
/
cypherQueryExample.txt
File metadata and controls
39 lines (33 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
###Some Examples of what are returned from Cypher Queries:
An example of what is returned by the database for each node. E.g.
{ outgoing_relationships: 'http://localhost:7474/db/data/node/312/relationships/out',
labels: 'http://localhost:7474/db/data/node/312/labels',
data: { propertyExample: 'valueExample' },
all_typed_relationships: 'http://localhost:7474/db/data/node/312/relationships/all/{-list|&|types}',
traverse: 'http://localhost:7474/db/data/node/312/traverse/{returnType}',
self: 'http://localhost:7474/db/data/node/312',
property: 'http://localhost:7474/db/data/node/312/properties/{key}',
outgoing_typed_relationships: 'http://localhost:7474/db/data/node/312/relationships/out/{-list|&|types}',
properties: 'http://localhost:7474/db/data/node/312/properties',
incoming_relationships: 'http://localhost:7474/db/data/node/312/relationships/in',
extensions: {},
create_relationship: 'http://localhost:7474/db/data/node/312/relationships',
paged_traverse: 'http://localhost:7474/db/data/node/312/paged/traverse/{returnType}{?pageSize,leaseTime}'
all_relationships: 'http://localhost:7474/db/data/node/312/relationships/all',
incoming_typed_relationships: 'http://localhost:7474/db/data/node/312/relationships/in/{-list|&|types}' }
An example of what is returned by the database for each arrow. E.g.
{ start: 'http://localhost:7474/db/data/node/314',
data: {},
self: 'http://localhost:7474/db/data/relationshi
property: 'http://localhost:7474/db/data/relatio
properties: 'http://localhost:7474/db/data/relat
type: 'RELATED_TO',
extensions: {},
end: 'http://localhost:7474/db/data/node/316' }
Code to write the full database data to a file. Currently inactive.
`fs = require('fs');
fs.writeFile('.\\static\\test.json', JSON.stringify(displaydata), function (err) {
if (err) throw err;
console.log('.json SAVED!');
});`
###