Skip to content

Commit

Permalink
fix old syntax in favorite (#1965)
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarDamkjaer authored Apr 5, 2024
1 parent fc60d6a commit 53514c9
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/shared/modules/favorites/staticScripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,24 @@ REQUIRE n.<propertyKey> IS UNIQUE`,
folder: 'profile',
content:
'// 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',
versionRange: '>=3'
versionRange: '>=3 <5'
},
{
folder: 'profile',
content: `// What kind of nodes exist
// Sample some nodes, reporting on property and relationship counts per node.
MATCH (n) WHERE rand() <= 0.1
RETURN
DISTINCT labels(n),
count(*) AS SampleSize,
avg(size(keys(n))) as Avg_PropertyCount,
min(size(keys(n))) as Min_PropertyCount,
max(size(keys(n))) as Max_PropertyCount,
avg(count{ (n)-[]-() } ) as Avg_RelationshipCount,
min(count{ (n)-[]-() } ) as Min_RelationshipCount,
max(count{ (n)-[]-() } ) as Max_RelationshipCount
`,
versionRange: '>=5'
},
{
folder: 'profile',
Expand Down

0 comments on commit 53514c9

Please sign in to comment.