Skip to content

Commit

Permalink
change the default query that send to the graph
Browse files Browse the repository at this point in the history
  • Loading branch information
Anchel123 committed Apr 4, 2024
1 parent bfeddab commit 6a66102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/graph/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function Page() {
// Proposed abstraction for improved modularity
if (!validateGraphSelection(state.graphName)) return;

const q = state.query.trim() || "MATCH (n)-[e]-() RETURN n,e limit 100";
const q = state.query.trim() || "MATCH (n) OPTIONAL MATCH (n)-[e]-(m) RETURN n,e,m limit 100";

const result = await fetch(`/api/graph?graph=${prepareArg(state.graphName)}&query=${prepareArg(q)}`, {
method: 'GET',
Expand Down

0 comments on commit 6a66102

Please sign in to comment.