From 738396771bac57c9e04f38e65ff0a69b51631276 Mon Sep 17 00:00:00 2001 From: Coraline Date: Tue, 25 Jun 2024 16:50:28 -0400 Subject: [PATCH] Correct the edge name for category-code sample query --- app/models/codebook.rb | 2 +- db/neo4j/schema.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/codebook.rb b/app/models/codebook.rb index 1430e5a..27b1fce 100644 --- a/app/models/codebook.rb +++ b/app/models/codebook.rb @@ -3,7 +3,7 @@ class Codebook def self.category_query(context) { explainer: "// Show me a graph of \"#{context}\"-related categories and their associated codes.", - query: "MATCH (cat:Category)-[:CATEGORIZES_AS]-(c:Code) WHERE cat.context=\"#{context}\" RETURN cat,c" + query: "MATCH (cat:Category)-[:CATEGORIZED_AS]-(c:Code) WHERE cat.context=\"#{context}\" RETURN cat,c" } end diff --git a/db/neo4j/schema.yml b/db/neo4j/schema.yml index f9b30e0..741c586 100644 --- a/db/neo4j/schema.yml +++ b/db/neo4j/schema.yml @@ -33,6 +33,7 @@ - '20240323194853' - '20240323195422' - '20240325234413' +- '20240412021416' - '20240522013044' - '20240607210627' - '20240615023034'