Skip to content

Commit 53514c9

Browse files
fix old syntax in favorite (#1965)
1 parent fc60d6a commit 53514c9

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

src/shared/modules/favorites/staticScripts.ts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,24 @@ REQUIRE n.<propertyKey> IS UNIQUE`,
9696
folder: 'profile',
9797
content:
9898
'// What kind of nodes exist\n// Sample some nodes, reporting on property and relationship counts per node.\nMATCH (n) WHERE rand() <= 0.1\nRETURN\nDISTINCT labels(n),\ncount(*) AS SampleSize,\navg(size(keys(n))) as Avg_PropertyCount,\nmin(size(keys(n))) as Min_PropertyCount,\nmax(size(keys(n))) as Max_PropertyCount,\navg(size( (n)-[]-() ) ) as Avg_RelationshipCount,\nmin(size( (n)-[]-() ) ) as Min_RelationshipCount,\nmax(size( (n)-[]-() ) ) as Max_RelationshipCount',
99-
versionRange: '>=3'
99+
versionRange: '>=3 <5'
100+
},
101+
{
102+
folder: 'profile',
103+
content: `// What kind of nodes exist
104+
// Sample some nodes, reporting on property and relationship counts per node.
105+
MATCH (n) WHERE rand() <= 0.1
106+
RETURN
107+
DISTINCT labels(n),
108+
count(*) AS SampleSize,
109+
avg(size(keys(n))) as Avg_PropertyCount,
110+
min(size(keys(n))) as Min_PropertyCount,
111+
max(size(keys(n))) as Max_PropertyCount,
112+
avg(count{ (n)-[]-() } ) as Avg_RelationshipCount,
113+
min(count{ (n)-[]-() } ) as Min_RelationshipCount,
114+
max(count{ (n)-[]-() } ) as Max_RelationshipCount
115+
`,
116+
versionRange: '>=5'
100117
},
101118
{
102119
folder: 'profile',

0 commit comments

Comments
 (0)