rom-neo4j 0.0.2 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +36 -0
- data/CHANGELOG.md +13 -0
- data/Gemfile +2 -0
- data/README.md +19 -9
- data/Rakefile +7 -0
- data/TODO.md +10 -2
- data/bin/disable_auth +22 -0
- data/lib/rom/neo4j.rb +2 -1
- data/lib/rom/neo4j/commands.rb +45 -0
- data/lib/rom/neo4j/dataset.rb +5 -0
- data/lib/rom/neo4j/{repository.rb → gateway.rb} +3 -1
- data/lib/rom/neo4j/support/core_ext.rb +4 -0
- data/lib/rom/neo4j/version.rb +1 -1
- data/rom-neo4j.gemspec +1 -1
- data/spec/fixtures/movies.cypher +508 -0
- data/spec/fixtures/neo4j_server/creates_a_single_node.yml +44 -0
- data/spec/fixtures/neo4j_server/maps_directors_by_movie_title.yml +178 -0
- data/spec/fixtures/neo4j_server/maps_movies_by_title.yml +179 -0
- data/spec/fixtures/neo4j_server/maps_movies_by_year.yml +178 -0
- data/spec/integration/adapter_spec.rb +5 -6
- data/spec/integration/transaction_spec.rb +26 -0
- data/spec/spec_helper.rb +16 -0
- metadata +30 -6
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:7474/db/data/cypher
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"query":"CREATE (n {props}) RETURN ID(n)","params":{"props":{"name":"Sydney"}}}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
User-Agent:
|
13
|
+
- neo4j-core-gem/4.0.1 (https://github.com/neo4jrb/neo4j-core)
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
Connection:
|
19
|
+
- keep-alive
|
20
|
+
Keep-Alive:
|
21
|
+
- 30
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=UTF-8
|
29
|
+
Access-Control-Allow-Origin:
|
30
|
+
- "*"
|
31
|
+
Content-Length:
|
32
|
+
- '51'
|
33
|
+
Server:
|
34
|
+
- Jetty(9.0.5.v20130815)
|
35
|
+
body:
|
36
|
+
encoding: UTF-8
|
37
|
+
string: |-
|
38
|
+
{
|
39
|
+
"columns" : [ "ID(n)" ],
|
40
|
+
"data" : [ [ 3 ] ]
|
41
|
+
}
|
42
|
+
http_version:
|
43
|
+
recorded_at: Thu, 14 May 2015 15:15:57 GMT
|
44
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,178 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:7474/authentication
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
User-Agent:
|
13
|
+
- neo4j-core-gem/4.0.1 (https://github.com/neo4jrb/neo4j-core)
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
Connection:
|
19
|
+
- keep-alive
|
20
|
+
Keep-Alive:
|
21
|
+
- 30
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 404
|
25
|
+
message: Not Found
|
26
|
+
headers:
|
27
|
+
Access-Control-Allow-Origin:
|
28
|
+
- "*"
|
29
|
+
Content-Type:
|
30
|
+
- text/html; charset=ISO-8859-1
|
31
|
+
Cache-Control:
|
32
|
+
- must-revalidate,no-cache,no-store
|
33
|
+
Content-Length:
|
34
|
+
- '0'
|
35
|
+
Server:
|
36
|
+
- Jetty(9.0.5.v20130815)
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: ''
|
40
|
+
http_version:
|
41
|
+
recorded_at: Wed, 13 May 2015 11:28:40 GMT
|
42
|
+
- request:
|
43
|
+
method: get
|
44
|
+
uri: http://localhost:7474/
|
45
|
+
body:
|
46
|
+
encoding: US-ASCII
|
47
|
+
string: ''
|
48
|
+
headers:
|
49
|
+
Content-Type:
|
50
|
+
- application/json
|
51
|
+
User-Agent:
|
52
|
+
- neo4j-core-gem/4.0.1 (https://github.com/neo4jrb/neo4j-core)
|
53
|
+
Accept-Encoding:
|
54
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
55
|
+
Accept:
|
56
|
+
- "*/*"
|
57
|
+
Connection:
|
58
|
+
- keep-alive
|
59
|
+
Keep-Alive:
|
60
|
+
- 30
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 200
|
64
|
+
message: OK
|
65
|
+
headers:
|
66
|
+
Content-Type:
|
67
|
+
- application/json; charset=UTF-8
|
68
|
+
Access-Control-Allow-Origin:
|
69
|
+
- "*"
|
70
|
+
Content-Length:
|
71
|
+
- '100'
|
72
|
+
Server:
|
73
|
+
- Jetty(9.0.5.v20130815)
|
74
|
+
body:
|
75
|
+
encoding: UTF-8
|
76
|
+
string: |-
|
77
|
+
{
|
78
|
+
"management" : "http://localhost:7474/db/manage/",
|
79
|
+
"data" : "http://localhost:7474/db/data/"
|
80
|
+
}
|
81
|
+
http_version:
|
82
|
+
recorded_at: Wed, 13 May 2015 11:28:40 GMT
|
83
|
+
- request:
|
84
|
+
method: get
|
85
|
+
uri: http://localhost:7474/db/data/
|
86
|
+
body:
|
87
|
+
encoding: US-ASCII
|
88
|
+
string: ''
|
89
|
+
headers:
|
90
|
+
Content-Type:
|
91
|
+
- application/json
|
92
|
+
User-Agent:
|
93
|
+
- neo4j-core-gem/4.0.1 (https://github.com/neo4jrb/neo4j-core)
|
94
|
+
Accept-Encoding:
|
95
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
96
|
+
Accept:
|
97
|
+
- "*/*"
|
98
|
+
Connection:
|
99
|
+
- keep-alive
|
100
|
+
Keep-Alive:
|
101
|
+
- 30
|
102
|
+
response:
|
103
|
+
status:
|
104
|
+
code: 200
|
105
|
+
message: OK
|
106
|
+
headers:
|
107
|
+
Content-Type:
|
108
|
+
- application/json; charset=UTF-8
|
109
|
+
Access-Control-Allow-Origin:
|
110
|
+
- "*"
|
111
|
+
Content-Length:
|
112
|
+
- '732'
|
113
|
+
Server:
|
114
|
+
- Jetty(9.0.5.v20130815)
|
115
|
+
body:
|
116
|
+
encoding: UTF-8
|
117
|
+
string: |-
|
118
|
+
{
|
119
|
+
"extensions" : {
|
120
|
+
},
|
121
|
+
"node" : "http://localhost:7474/db/data/node",
|
122
|
+
"node_index" : "http://localhost:7474/db/data/index/node",
|
123
|
+
"relationship_index" : "http://localhost:7474/db/data/index/relationship",
|
124
|
+
"extensions_info" : "http://localhost:7474/db/data/ext",
|
125
|
+
"relationship_types" : "http://localhost:7474/db/data/relationship/types",
|
126
|
+
"batch" : "http://localhost:7474/db/data/batch",
|
127
|
+
"cypher" : "http://localhost:7474/db/data/cypher",
|
128
|
+
"indexes" : "http://localhost:7474/db/data/schema/index",
|
129
|
+
"constraints" : "http://localhost:7474/db/data/schema/constraint",
|
130
|
+
"transaction" : "http://localhost:7474/db/data/transaction",
|
131
|
+
"node_labels" : "http://localhost:7474/db/data/labels",
|
132
|
+
"neo4j_version" : "2.1.3"
|
133
|
+
}
|
134
|
+
http_version:
|
135
|
+
recorded_at: Wed, 13 May 2015 11:28:40 GMT
|
136
|
+
- request:
|
137
|
+
method: post
|
138
|
+
uri: http://localhost:7474/db/data/cypher
|
139
|
+
body:
|
140
|
+
encoding: UTF-8
|
141
|
+
string: '{"query":"MATCH (director:Person)-[:DIRECTED]->(movie:Movie) WHERE
|
142
|
+
movie.title = {movie_title} RETURN DISTINCT director.name AS name","params":{"movie_title":"RescueDawn"}}'
|
143
|
+
headers:
|
144
|
+
Content-Type:
|
145
|
+
- application/json
|
146
|
+
User-Agent:
|
147
|
+
- neo4j-core-gem/4.0.1 (https://github.com/neo4jrb/neo4j-core)
|
148
|
+
Accept-Encoding:
|
149
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
150
|
+
Accept:
|
151
|
+
- "*/*"
|
152
|
+
Connection:
|
153
|
+
- keep-alive
|
154
|
+
Keep-Alive:
|
155
|
+
- 30
|
156
|
+
response:
|
157
|
+
status:
|
158
|
+
code: 200
|
159
|
+
message: OK
|
160
|
+
headers:
|
161
|
+
Content-Type:
|
162
|
+
- application/json; charset=UTF-8
|
163
|
+
Access-Control-Allow-Origin:
|
164
|
+
- "*"
|
165
|
+
Content-Length:
|
166
|
+
- '64'
|
167
|
+
Server:
|
168
|
+
- Jetty(9.0.5.v20130815)
|
169
|
+
body:
|
170
|
+
encoding: UTF-8
|
171
|
+
string: |-
|
172
|
+
{
|
173
|
+
"columns" : [ "name" ],
|
174
|
+
"data" : [ [ "Werner Herzog" ] ]
|
175
|
+
}
|
176
|
+
http_version:
|
177
|
+
recorded_at: Wed, 13 May 2015 11:28:40 GMT
|
178
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,179 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:7474/authentication
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
User-Agent:
|
13
|
+
- neo4j-core-gem/4.0.1 (https://github.com/neo4jrb/neo4j-core)
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
Connection:
|
19
|
+
- keep-alive
|
20
|
+
Keep-Alive:
|
21
|
+
- 30
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 404
|
25
|
+
message: Not Found
|
26
|
+
headers:
|
27
|
+
Access-Control-Allow-Origin:
|
28
|
+
- "*"
|
29
|
+
Content-Type:
|
30
|
+
- text/html; charset=ISO-8859-1
|
31
|
+
Cache-Control:
|
32
|
+
- must-revalidate,no-cache,no-store
|
33
|
+
Content-Length:
|
34
|
+
- '0'
|
35
|
+
Server:
|
36
|
+
- Jetty(9.0.5.v20130815)
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: ''
|
40
|
+
http_version:
|
41
|
+
recorded_at: Wed, 13 May 2015 11:28:40 GMT
|
42
|
+
- request:
|
43
|
+
method: get
|
44
|
+
uri: http://localhost:7474/
|
45
|
+
body:
|
46
|
+
encoding: US-ASCII
|
47
|
+
string: ''
|
48
|
+
headers:
|
49
|
+
Content-Type:
|
50
|
+
- application/json
|
51
|
+
User-Agent:
|
52
|
+
- neo4j-core-gem/4.0.1 (https://github.com/neo4jrb/neo4j-core)
|
53
|
+
Accept-Encoding:
|
54
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
55
|
+
Accept:
|
56
|
+
- "*/*"
|
57
|
+
Connection:
|
58
|
+
- keep-alive
|
59
|
+
Keep-Alive:
|
60
|
+
- 30
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 200
|
64
|
+
message: OK
|
65
|
+
headers:
|
66
|
+
Content-Type:
|
67
|
+
- application/json; charset=UTF-8
|
68
|
+
Access-Control-Allow-Origin:
|
69
|
+
- "*"
|
70
|
+
Content-Length:
|
71
|
+
- '100'
|
72
|
+
Server:
|
73
|
+
- Jetty(9.0.5.v20130815)
|
74
|
+
body:
|
75
|
+
encoding: UTF-8
|
76
|
+
string: |-
|
77
|
+
{
|
78
|
+
"management" : "http://localhost:7474/db/manage/",
|
79
|
+
"data" : "http://localhost:7474/db/data/"
|
80
|
+
}
|
81
|
+
http_version:
|
82
|
+
recorded_at: Wed, 13 May 2015 11:28:40 GMT
|
83
|
+
- request:
|
84
|
+
method: get
|
85
|
+
uri: http://localhost:7474/db/data/
|
86
|
+
body:
|
87
|
+
encoding: US-ASCII
|
88
|
+
string: ''
|
89
|
+
headers:
|
90
|
+
Content-Type:
|
91
|
+
- application/json
|
92
|
+
User-Agent:
|
93
|
+
- neo4j-core-gem/4.0.1 (https://github.com/neo4jrb/neo4j-core)
|
94
|
+
Accept-Encoding:
|
95
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
96
|
+
Accept:
|
97
|
+
- "*/*"
|
98
|
+
Connection:
|
99
|
+
- keep-alive
|
100
|
+
Keep-Alive:
|
101
|
+
- 30
|
102
|
+
response:
|
103
|
+
status:
|
104
|
+
code: 200
|
105
|
+
message: OK
|
106
|
+
headers:
|
107
|
+
Content-Type:
|
108
|
+
- application/json; charset=UTF-8
|
109
|
+
Access-Control-Allow-Origin:
|
110
|
+
- "*"
|
111
|
+
Content-Length:
|
112
|
+
- '732'
|
113
|
+
Server:
|
114
|
+
- Jetty(9.0.5.v20130815)
|
115
|
+
body:
|
116
|
+
encoding: UTF-8
|
117
|
+
string: |-
|
118
|
+
{
|
119
|
+
"extensions" : {
|
120
|
+
},
|
121
|
+
"node" : "http://localhost:7474/db/data/node",
|
122
|
+
"node_index" : "http://localhost:7474/db/data/index/node",
|
123
|
+
"relationship_index" : "http://localhost:7474/db/data/index/relationship",
|
124
|
+
"extensions_info" : "http://localhost:7474/db/data/ext",
|
125
|
+
"relationship_types" : "http://localhost:7474/db/data/relationship/types",
|
126
|
+
"batch" : "http://localhost:7474/db/data/batch",
|
127
|
+
"cypher" : "http://localhost:7474/db/data/cypher",
|
128
|
+
"indexes" : "http://localhost:7474/db/data/schema/index",
|
129
|
+
"constraints" : "http://localhost:7474/db/data/schema/constraint",
|
130
|
+
"transaction" : "http://localhost:7474/db/data/transaction",
|
131
|
+
"node_labels" : "http://localhost:7474/db/data/labels",
|
132
|
+
"neo4j_version" : "2.1.3"
|
133
|
+
}
|
134
|
+
http_version:
|
135
|
+
recorded_at: Wed, 13 May 2015 11:28:40 GMT
|
136
|
+
- request:
|
137
|
+
method: post
|
138
|
+
uri: http://localhost:7474/db/data/cypher
|
139
|
+
body:
|
140
|
+
encoding: UTF-8
|
141
|
+
string: '{"query":"MATCH (m:`Movie`) WHERE m.title = {m_title} RETURN m.title
|
142
|
+
AS title, m.released AS released, m.tagline as tagline","params":{"m_title":"The
|
143
|
+
Matrix"}}'
|
144
|
+
headers:
|
145
|
+
Content-Type:
|
146
|
+
- application/json
|
147
|
+
User-Agent:
|
148
|
+
- neo4j-core-gem/4.0.1 (https://github.com/neo4jrb/neo4j-core)
|
149
|
+
Accept-Encoding:
|
150
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
151
|
+
Accept:
|
152
|
+
- "*/*"
|
153
|
+
Connection:
|
154
|
+
- keep-alive
|
155
|
+
Keep-Alive:
|
156
|
+
- 30
|
157
|
+
response:
|
158
|
+
status:
|
159
|
+
code: 200
|
160
|
+
message: OK
|
161
|
+
headers:
|
162
|
+
Content-Type:
|
163
|
+
- application/json; charset=UTF-8
|
164
|
+
Access-Control-Allow-Origin:
|
165
|
+
- "*"
|
166
|
+
Content-Length:
|
167
|
+
- '120'
|
168
|
+
Server:
|
169
|
+
- Jetty(9.0.5.v20130815)
|
170
|
+
body:
|
171
|
+
encoding: UTF-8
|
172
|
+
string: |-
|
173
|
+
{
|
174
|
+
"columns" : [ "title", "released", "tagline" ],
|
175
|
+
"data" : [ [ "The Matrix", 1999, "Welcome to the Real World" ] ]
|
176
|
+
}
|
177
|
+
http_version:
|
178
|
+
recorded_at: Wed, 13 May 2015 11:28:40 GMT
|
179
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,178 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:7474/authentication
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
User-Agent:
|
13
|
+
- neo4j-core-gem/4.0.1 (https://github.com/neo4jrb/neo4j-core)
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
Connection:
|
19
|
+
- keep-alive
|
20
|
+
Keep-Alive:
|
21
|
+
- 30
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 404
|
25
|
+
message: Not Found
|
26
|
+
headers:
|
27
|
+
Access-Control-Allow-Origin:
|
28
|
+
- "*"
|
29
|
+
Content-Type:
|
30
|
+
- text/html; charset=ISO-8859-1
|
31
|
+
Cache-Control:
|
32
|
+
- must-revalidate,no-cache,no-store
|
33
|
+
Content-Length:
|
34
|
+
- '0'
|
35
|
+
Server:
|
36
|
+
- Jetty(9.0.5.v20130815)
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: ''
|
40
|
+
http_version:
|
41
|
+
recorded_at: Wed, 13 May 2015 11:28:40 GMT
|
42
|
+
- request:
|
43
|
+
method: get
|
44
|
+
uri: http://localhost:7474/
|
45
|
+
body:
|
46
|
+
encoding: US-ASCII
|
47
|
+
string: ''
|
48
|
+
headers:
|
49
|
+
Content-Type:
|
50
|
+
- application/json
|
51
|
+
User-Agent:
|
52
|
+
- neo4j-core-gem/4.0.1 (https://github.com/neo4jrb/neo4j-core)
|
53
|
+
Accept-Encoding:
|
54
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
55
|
+
Accept:
|
56
|
+
- "*/*"
|
57
|
+
Connection:
|
58
|
+
- keep-alive
|
59
|
+
Keep-Alive:
|
60
|
+
- 30
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 200
|
64
|
+
message: OK
|
65
|
+
headers:
|
66
|
+
Content-Type:
|
67
|
+
- application/json; charset=UTF-8
|
68
|
+
Access-Control-Allow-Origin:
|
69
|
+
- "*"
|
70
|
+
Content-Length:
|
71
|
+
- '100'
|
72
|
+
Server:
|
73
|
+
- Jetty(9.0.5.v20130815)
|
74
|
+
body:
|
75
|
+
encoding: UTF-8
|
76
|
+
string: |-
|
77
|
+
{
|
78
|
+
"management" : "http://localhost:7474/db/manage/",
|
79
|
+
"data" : "http://localhost:7474/db/data/"
|
80
|
+
}
|
81
|
+
http_version:
|
82
|
+
recorded_at: Wed, 13 May 2015 11:28:40 GMT
|
83
|
+
- request:
|
84
|
+
method: get
|
85
|
+
uri: http://localhost:7474/db/data/
|
86
|
+
body:
|
87
|
+
encoding: US-ASCII
|
88
|
+
string: ''
|
89
|
+
headers:
|
90
|
+
Content-Type:
|
91
|
+
- application/json
|
92
|
+
User-Agent:
|
93
|
+
- neo4j-core-gem/4.0.1 (https://github.com/neo4jrb/neo4j-core)
|
94
|
+
Accept-Encoding:
|
95
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
96
|
+
Accept:
|
97
|
+
- "*/*"
|
98
|
+
Connection:
|
99
|
+
- keep-alive
|
100
|
+
Keep-Alive:
|
101
|
+
- 30
|
102
|
+
response:
|
103
|
+
status:
|
104
|
+
code: 200
|
105
|
+
message: OK
|
106
|
+
headers:
|
107
|
+
Content-Type:
|
108
|
+
- application/json; charset=UTF-8
|
109
|
+
Access-Control-Allow-Origin:
|
110
|
+
- "*"
|
111
|
+
Content-Length:
|
112
|
+
- '732'
|
113
|
+
Server:
|
114
|
+
- Jetty(9.0.5.v20130815)
|
115
|
+
body:
|
116
|
+
encoding: UTF-8
|
117
|
+
string: |-
|
118
|
+
{
|
119
|
+
"extensions" : {
|
120
|
+
},
|
121
|
+
"node" : "http://localhost:7474/db/data/node",
|
122
|
+
"node_index" : "http://localhost:7474/db/data/index/node",
|
123
|
+
"relationship_index" : "http://localhost:7474/db/data/index/relationship",
|
124
|
+
"extensions_info" : "http://localhost:7474/db/data/ext",
|
125
|
+
"relationship_types" : "http://localhost:7474/db/data/relationship/types",
|
126
|
+
"batch" : "http://localhost:7474/db/data/batch",
|
127
|
+
"cypher" : "http://localhost:7474/db/data/cypher",
|
128
|
+
"indexes" : "http://localhost:7474/db/data/schema/index",
|
129
|
+
"constraints" : "http://localhost:7474/db/data/schema/constraint",
|
130
|
+
"transaction" : "http://localhost:7474/db/data/transaction",
|
131
|
+
"node_labels" : "http://localhost:7474/db/data/labels",
|
132
|
+
"neo4j_version" : "2.1.3"
|
133
|
+
}
|
134
|
+
http_version:
|
135
|
+
recorded_at: Wed, 13 May 2015 11:28:40 GMT
|
136
|
+
- request:
|
137
|
+
method: post
|
138
|
+
uri: http://localhost:7474/db/data/cypher
|
139
|
+
body:
|
140
|
+
encoding: UTF-8
|
141
|
+
string: '{"query":"MATCH (m:`Movie`) WHERE m.released = {m_released} RETURN
|
142
|
+
m.title AS title, m.released AS released, m.tagline as tagline","params":{"m_released":1999}}'
|
143
|
+
headers:
|
144
|
+
Content-Type:
|
145
|
+
- application/json
|
146
|
+
User-Agent:
|
147
|
+
- neo4j-core-gem/4.0.1 (https://github.com/neo4jrb/neo4j-core)
|
148
|
+
Accept-Encoding:
|
149
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
150
|
+
Accept:
|
151
|
+
- "*/*"
|
152
|
+
Connection:
|
153
|
+
- keep-alive
|
154
|
+
Keep-Alive:
|
155
|
+
- 30
|
156
|
+
response:
|
157
|
+
status:
|
158
|
+
code: 200
|
159
|
+
message: OK
|
160
|
+
headers:
|
161
|
+
Content-Type:
|
162
|
+
- application/json; charset=UTF-8
|
163
|
+
Access-Control-Allow-Origin:
|
164
|
+
- "*"
|
165
|
+
Content-Length:
|
166
|
+
- '339'
|
167
|
+
Server:
|
168
|
+
- Jetty(9.0.5.v20130815)
|
169
|
+
body:
|
170
|
+
encoding: UTF-8
|
171
|
+
string: |-
|
172
|
+
{
|
173
|
+
"columns" : [ "title", "released", "tagline" ],
|
174
|
+
"data" : [ [ "The Matrix", 1999, "Welcome to the Real World" ], [ "Snow Falling on Cedars", 1999, "First loves last. Forever." ], [ "The Green Mile", 1999, "Walk a mile you'll never forget." ], [ "Bicentennial Man", 1999, "One robot's 200 year journey to become an ordinary man." ] ]
|
175
|
+
}
|
176
|
+
http_version:
|
177
|
+
recorded_at: Wed, 13 May 2015 11:28:40 GMT
|
178
|
+
recorded_with: VCR 2.9.3
|