Skip to content

Commit 997d43c

Browse files
authored
Merge pull request #44 from neo4j-devtools/neo4j-5
Update App.vue - 5.x Neo4j
2 parents 54fa1fd + 842df57 commit 997d43c

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphapps/neosemantics",
3-
"version": "0.3.3",
3+
"version": "0.5.0",
44
"neo4jDesktop": {
55
"apiVersion": "^1.4.0"
66
},

public/asciidoc/_install.adoc

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ dbms.unmanaged_extension_classes=n10s.endpoint=/rdf
1313
3. Restart the server.
1414
4. Check that the installation went well by running
1515
[source,cypher]
16-
call dbms.procedures()
16+
SHOW PROCEDURES YIELD name
17+
WHERE name STARTS WITH "n10s"
1718

1819
The list of procedures should include the ones documented below.
1920
You can check that the extension is mounted by running

src/App.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
closeIcon="angle down"
1515
/>
1616

17-
<version-detector v-if="!neo4jVersion" :onVersionLoaded="onVersionLoaded" :onLogOut="logOut" :valid='["4.0.*", "4.1.*", "4.2.*", "4.3.*", "4.4.*"]' />
17+
<version-detector v-if="!neo4jVersion" :onVersionLoaded="onVersionLoaded" :onLogOut="logOut" :valid='["4.0.*", "4.1.*", "4.2.*", "4.3.*", "4.4.*","5.*"]' />
1818
<plugin-detector v-else-if="!plugins" :onPluginsLoaded="onPluginsLoaded" />
1919
<constraint-detector v-else-if="!constraints" :database="database" :onConstraintsLoaded="onConstraintsLoaded" />
2020

src/components/ConstraintDetector.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default {
5353
this.loading = 'Checking Constraints...'
5454
5555
this.$neo4j.run(`
56-
CALL db.schemaStatements()
56+
SHOW CONSTRAINTS
5757
YIELD name
5858
WHERE name = $name
5959
RETURN count(*) AS count
@@ -85,7 +85,7 @@ export default {
8585
},
8686
computed: {
8787
createConstraintCypher() {
88-
return `CREATE CONSTRAINT ${this.name} ON (r:${this.label}) ASSERT r.${this.property} IS UNIQUE`
88+
return `CREATE CONSTRAINT ${this.name} FOR (r:${this.label}) REQUIRE r.${this.property} IS UNIQUE`
8989
}
9090
},
9191
watch: {

src/components/PluginDetector.vue

+3-4
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,9 @@ export default {
4545
4646
setTimeout(() => {
4747
this.$neo4j.run(`
48-
CALL dbms.procedures() YIELD name
49-
WITH name WHERE name STARTS WITH 'n10s' OR name STARTS WITH 'neosemantics'
50-
WITH split(name, ".")[0] as prefix, count(*) AS count, collect(name) AS procedures
51-
RETURN collect({prefix: prefix, count: count, procedures: procedures}) AS plugins
48+
SHOW PROCEDURES YIELD name
49+
WHERE name STARTS WITH 'n10s' OR name STARTS WITH 'neosemantics'
50+
RETURN split(name,".")[0] as plugins, count(*) as count
5251
`)
5352
.then(({ records }) => {
5453
const [ first ] = records

0 commit comments

Comments
 (0)