@@ -5,7 +5,7 @@ import Graph from './graph';
5
5
describe ( 'Graph' , ( ) => {
6
6
testUtils . testWithClient ( 'null' , async client => {
7
7
const graph = new Graph ( client as any , 'graph' ) ,
8
- { data } = await graph . roQuery ( 'RETURN null AS key' ) ;
8
+ { data } = await graph . query ( 'RETURN null AS key' ) ;
9
9
10
10
assert . deepEqual (
11
11
data ,
@@ -15,7 +15,7 @@ describe('Graph', () => {
15
15
16
16
testUtils . testWithClient ( 'string' , async client => {
17
17
const graph = new Graph ( client as any , 'graph' ) ,
18
- { data } = await graph . roQuery ( 'RETURN "string" AS key' ) ;
18
+ { data } = await graph . query ( 'RETURN "string" AS key' ) ;
19
19
20
20
assert . deepEqual (
21
21
data ,
@@ -25,7 +25,7 @@ describe('Graph', () => {
25
25
26
26
testUtils . testWithClient ( 'integer' , async client => {
27
27
const graph = new Graph ( client as any , 'graph' ) ,
28
- { data } = await graph . roQuery ( 'RETURN 0 AS key' ) ;
28
+ { data } = await graph . query ( 'RETURN 0 AS key' ) ;
29
29
30
30
assert . deepEqual (
31
31
data ,
@@ -35,7 +35,7 @@ describe('Graph', () => {
35
35
36
36
testUtils . testWithClient ( 'boolean' , async client => {
37
37
const graph = new Graph ( client as any , 'graph' ) ,
38
- { data } = await graph . roQuery ( 'RETURN false AS key' ) ;
38
+ { data } = await graph . query ( 'RETURN false AS key' ) ;
39
39
40
40
assert . deepEqual (
41
41
data ,
@@ -45,7 +45,7 @@ describe('Graph', () => {
45
45
46
46
testUtils . testWithClient ( 'double' , async client => {
47
47
const graph = new Graph ( client as any , 'graph' ) ,
48
- { data } = await graph . roQuery ( 'RETURN 0.1 AS key' ) ;
48
+ { data } = await graph . query ( 'RETURN 0.1 AS key' ) ;
49
49
50
50
assert . deepEqual (
51
51
data ,
@@ -55,7 +55,7 @@ describe('Graph', () => {
55
55
56
56
testUtils . testWithClient ( 'array' , async client => {
57
57
const graph = new Graph ( client as any , 'graph' ) ,
58
- { data } = await graph . roQuery ( 'RETURN [null] AS key' ) ;
58
+ { data } = await graph . query ( 'RETURN [null] AS key' ) ;
59
59
60
60
assert . deepEqual (
61
61
data ,
@@ -125,7 +125,7 @@ describe('Graph', () => {
125
125
126
126
testUtils . testWithClient ( 'map' , async client => {
127
127
const graph = new Graph ( client as any , 'graph' ) ,
128
- { data } = await graph . roQuery ( 'RETURN { key: "value" } AS map' ) ;
128
+ { data } = await graph . query ( 'RETURN { key: "value" } AS map' ) ;
129
129
130
130
assert . deepEqual ( data , [ {
131
131
map : {
@@ -136,7 +136,7 @@ describe('Graph', () => {
136
136
137
137
testUtils . testWithClient ( 'point' , async client => {
138
138
const graph = new Graph ( client as any , 'graph' ) ,
139
- { data } = await graph . roQuery ( 'RETURN point({ latitude: 1, longitude: 2 }) AS point' ) ;
139
+ { data } = await graph . query ( 'RETURN point({ latitude: 1, longitude: 2 }) AS point' ) ;
140
140
141
141
assert . deepEqual ( data , [ {
142
142
point : {
0 commit comments