<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Maheswar Sahoo</title>
    <description>The latest articles on DEV Community by Maheswar Sahoo (@maheswarsah00).</description>
    <link>https://dev.to/maheswarsah00</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3498001%2F3dcc1559-c2cb-4148-ae15-7e2e31d5d72f.jpeg</url>
      <title>DEV Community: Maheswar Sahoo</title>
      <link>https://dev.to/maheswarsah00</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/maheswarsah00"/>
    <language>en</language>
    <item>
      <title>Dependabot said green. The app was blank. So I made Kane CLI check before it merges</title>
      <dc:creator>Maheswar Sahoo</dc:creator>
      <pubDate>Wed, 25 Nov 2026 18:03:43 +0000</pubDate>
      <link>https://dev.to/maheswarsah00/dependabot-said-green-the-app-was-blank-so-i-made-kane-cli-check-before-it-merges-1e0a</link>
      <guid>https://dev.to/maheswarsah00/dependabot-said-green-the-app-was-blank-so-i-made-kane-cli-check-before-it-merges-1e0a</guid>
      <description>&lt;p&gt;&lt;em&gt;Built for the &lt;a href="https://www.kaneclihack.sh/" rel="noopener noreferrer"&gt;Kane CLI Hackathon&lt;/a&gt; by TestMu AI.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I found six public repos where the same thing happened. Dependabot opened a React bump. CI went green: type check, lint, build, and in four of them the deploy itself. The PR merged. The live app was a blank page, and the maintainer had to revert it or fix it by hand.&lt;/p&gt;

&lt;p&gt;One of them put it plainly in the revert:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Format check, lint, typecheck and build stay green, which is why the chain did not catch it."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In all six, the bot raised &lt;code&gt;react&lt;/code&gt; and left &lt;code&gt;react-dom&lt;/code&gt; behind. React refuses to start when the two differ (&lt;a href="https://react.dev/errors/527" rel="noopener noreferrer"&gt;error #527&lt;/a&gt;), so the bundle throws before the first render. Nothing in a normal CI pipeline opens the app, so nothing sees it. Even npm is happy, because &lt;code&gt;react-dom&lt;/code&gt; only asks for &lt;code&gt;^19&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxpfrab4eiw7rh17zszfv.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxpfrab4eiw7rh17zszfv.jpg" alt="Five public apps: on main each renders; on Dependabot's react bump each page is empty" width="800" height="936"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A green check on a bot PR means the code builds. It doesn't mean checkout still works. So I built &lt;strong&gt;Bumpgate&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/4M6fN9S-Zgw" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;On every Dependabot or Renovate PR, Bumpgate:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;builds &lt;code&gt;main&lt;/code&gt; and the bump side by side (two git worktrees);&lt;/li&gt;
&lt;li&gt;has &lt;a href="https://www.testmuai.com/kane-cli/" rel="noopener noreferrer"&gt;Kane CLI&lt;/a&gt; replay your app's critical journeys in a real browser on &lt;strong&gt;both&lt;/strong&gt;;&lt;/li&gt;
&lt;li&gt;decides with one rule, in plain code: &lt;strong&gt;every journey that passes on main must pass on the bump.&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Then one of three lights:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🟢 &lt;strong&gt;Green:&lt;/strong&gt; every journey behaves the same. The PR merges itself.&lt;/li&gt;
&lt;li&gt;🟡 &lt;strong&gt;Amber:&lt;/strong&gt; it works, but Kane had to self-heal a step, or new console errors appeared. One human look.&lt;/li&gt;
&lt;li&gt;🔴 &lt;strong&gt;Red:&lt;/strong&gt; a journey broke. Blocked, and the fix loop starts.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A journey is plain English
&lt;/h2&gt;

&lt;p&gt;No selectors and no page objects. This is a real journey from the demo shop, &lt;code&gt;.kane/checkout_errors_test.md&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;# Checkout explains what is wrong
&lt;/span&gt;
&lt;span class="gu"&gt;## Add a product and go to checkout
&lt;/span&gt;Click "Add to cart" on the first product, click "Cart" in the header, then click "Go to checkout".

&lt;span class="gu"&gt;## Submit with a missing name and a bad email
&lt;/span&gt;Leave "Full name" empty, type "not-an-email" into "Email", then click the "Place order" button.

&lt;span class="gu"&gt;## See the errors
&lt;/span&gt;Verify the message "Please enter your name" is shown.
Verify the message "Enter a valid email address" is shown.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Kane records it once on &lt;code&gt;main&lt;/code&gt;, then replays it against each PR build with &lt;code&gt;kane-cli testmd run --override-start-url&lt;/code&gt;. Because the journey describes behaviour, not CSS classes, a UI kit renaming its classes doesn't break it. A checkout that stops showing errors does.&lt;/p&gt;

&lt;p&gt;Don't want to write them? &lt;code&gt;bumpgate init&lt;/code&gt; has Claude Code draft journeys from your code, and only the drafts Kane passes on &lt;code&gt;main&lt;/code&gt; are kept.&lt;/p&gt;

&lt;h2&gt;
  
  
  When something breaks: the closed loop
&lt;/h2&gt;

&lt;p&gt;This is a real run, on &lt;a href="https://github.com/Maheswar-Sah00/bumpgatedemo/pull/4" rel="noopener noreferrer"&gt;PR #4&lt;/a&gt; in the demo shop.&lt;/p&gt;

&lt;p&gt;Dependabot bumped &lt;code&gt;zod&lt;/code&gt; from 3 to 4. CI passed. Kane ran "Checkout explains what is wrong" on the bump, and the errors never appeared: it failed at step 3, on 2 of 2 runs. Kane's own bug verdict: &lt;em&gt;"Checkout omits required-name validation message (major)"&lt;/em&gt;, with a new console error only on the bump: &lt;code&gt;Cannot read properties of undefined (reading 'forEach')&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Kane's failed step, reason, bug verdict, console errors and the package's release notes became Claude Code's task. It came back with one line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight diff"&gt;&lt;code&gt;&lt;span class="gd"&gt;-      result.error.errors.forEach((issue) =&amp;gt; {&lt;/span&gt;
&lt;span class="gi"&gt;+      result.error.issues.forEach((issue) =&amp;gt; {&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Before anything merges, &lt;strong&gt;code&lt;/strong&gt;, not a prompt, checks the diff. It rejects any fix that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;edits a journey (making the test easier),&lt;/li&gt;
&lt;li&gt;undoes the bump,&lt;/li&gt;
&lt;li&gt;hard-codes a text the journey checks for,&lt;/li&gt;
&lt;li&gt;or is suspiciously large.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then Kane re-runs &lt;strong&gt;every&lt;/strong&gt; journey on the fixed branch: 3 of 3 passed, and it merged. If the fix fails three times, the PR is labelled for a human instead. If you'd rather a person approve every agent-written fix, set &lt;code&gt;merge-fixes: review&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwxih455oap1fix6uvtk3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwxih455oap1fix6uvtk3.png" alt="Bumpgate's comment on the PR: journeys on base and bump, the failed step, Claude Code's fix, Kane's 3/3 re-run" width="800" height="1600"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Results, with the limits
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Real React bumps in 6 public repos that passed CI and shipped a blank page&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Kane blocks 6 of 6&lt;/strong&gt; at step 1, each failure confirmed by a second run&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Demo shop: zod 3→4 and react-query 4→5 both passed CI and broke the app&lt;/td&gt;
&lt;td&gt;Both blocked, fixed by Claude Code, re-verified by Kane, merged&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Demo shop: clsx 1→2, a safe bump&lt;/td&gt;
&lt;td&gt;Green; merged itself in under 2 minutes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10 open Dependabot PRs in strangers' repos&lt;/td&gt;
&lt;td&gt;2 blank pages (their own CI was red, but a forced install ships them), 1 amber, 7 green&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bot bumps that were merged and never reverted&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;0 false alarms&lt;/strong&gt; on 4&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Honest limits:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The six blank pages are &lt;strong&gt;one bug class&lt;/strong&gt;, and I found them by searching for it. 6 of 6 is not a catch rate. A script comparing the two version numbers would catch this one bug too; the point is that one plain-English journey catches it &lt;em&gt;and whatever comes next&lt;/em&gt;, with no rule written for it.&lt;/li&gt;
&lt;li&gt;The app has to run without a private backend.&lt;/li&gt;
&lt;li&gt;Kane runs cost credits (replaying a recorded journey is cheap).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try the whole loop in 10 seconds, no account
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx github:Maheswar-Sah00/bumpgate replay
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It feeds Kane CLI's recorded output from the real PR #4 run through the real gate code: the block, the evidence Claude Code was handed, its fix, the guardrails rejecting two cheating fixes, and Kane's 3/3 re-run. No keys, no credits.&lt;/p&gt;

&lt;h2&gt;
  
  
  Add it to your repo
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# .github/workflows/bumpgate.yml
&lt;/span&gt;&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Bumpgate&lt;/span&gt;
&lt;span class="na"&gt;on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;pull_request&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;types&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;opened&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;synchronize&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;reopened&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="na"&gt;permissions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s"&gt;contents:&lt;/span&gt; &lt;span class="s"&gt;write&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;pull-requests:&lt;/span&gt; &lt;span class="s"&gt;write&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;issues:&lt;/span&gt; &lt;span class="s"&gt;write&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;statuses:&lt;/span&gt; &lt;span class="s"&gt;write&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;gate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;if&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'renovate[bot]'&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/checkout@v4&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s"&gt;fetch-depth:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/setup-node@v4&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s"&gt;node-version:&lt;/span&gt; &lt;span class="mi"&gt;22&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Maheswar-Sah00/bumpgate@v1.1&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;lt-username&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.LT_USERNAME }}&lt;/span&gt;
          &lt;span class="na"&gt;lt-access-key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.LT_ACCESS_KEY }}&lt;/span&gt;
          &lt;span class="na"&gt;anthropic-api-key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.ANTHROPIC_API_KEY }}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One gotcha: Dependabot PRs can only read &lt;strong&gt;Dependabot secrets&lt;/strong&gt;, so add the keys under &lt;em&gt;Settings → Secrets → Dependabot&lt;/em&gt;. And the bump's install scripts never see the TestMu key, the GitHub token or the agent key.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this only works with Kane CLI
&lt;/h2&gt;

&lt;p&gt;The gate needs three things a selector script can't give: a journey that survives cosmetic UI churn but fails on broken behaviour; evidence an agent can act on (the failed step, a bug verdict, console and network); and a re-check of the agent's own fix. Kane is all three: the gate, the evidence, and the referee.&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Live site (start here): &lt;a href="https://maheswar-sah00.github.io/bumpgate/" rel="noopener noreferrer"&gt;https://maheswar-sah00.github.io/bumpgate/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Code (MIT): &lt;a href="https://github.com/Maheswar-Sah00/bumpgate" rel="noopener noreferrer"&gt;https://github.com/Maheswar-Sah00/bumpgate&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Live demo PRs: &lt;a href="https://github.com/Maheswar-Sah00/bumpgatedemo/pulls?q=is%3Apr" rel="noopener noreferrer"&gt;https://github.com/Maheswar-Sah00/bumpgatedemo/pulls?q=is%3Apr&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Backtest, with screenshots and every revert linked: &lt;a href="https://github.com/Maheswar-Sah00/bumpgate/blob/main/backtest/blank-page/RESULTS.md" rel="noopener noreferrer"&gt;https://github.com/Maheswar-Sah00/bumpgate/blob/main/backtest/blank-page/RESULTS.md&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Questions and "this would never work on my repo" are both welcome in the comments.&lt;/p&gt;

&lt;h1&gt;
  
  
  KaneCLIHackathon #KaneCLI
&lt;/h1&gt;

</description>
      <category>cli</category>
      <category>devchallenge</category>
      <category>javascript</category>
      <category>react</category>
    </item>
    <item>
      <title>Building a Movie Recommendation Graph in Neo4j</title>
      <dc:creator>Maheswar Sahoo</dc:creator>
      <pubDate>Sun, 14 Sep 2025 07:12:13 +0000</pubDate>
      <link>https://dev.to/maheswarsah00/building-a-movie-recommendation-graph-in-neo4j-2b4o</link>
      <guid>https://dev.to/maheswarsah00/building-a-movie-recommendation-graph-in-neo4j-2b4o</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Introduction&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;We’ve all been there: scrolling continuously through a streaming platform, unsure what to watch next. Traditional databases struggle to power personalized recommendations because they are optimized for rows and tables, not relationships. This is where graph databases like Neo4j comes into play.&lt;/p&gt;

&lt;p&gt;In this post, I’ll Walk you through how to build a simple movie recommendation engine using Neo4j’s built-in Movie dataset. By the end, you’ll be able to:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Model people, movies, and their relationships as a graph.&lt;/li&gt;
&lt;li&gt;Run Cypher queries to recommend movies based on shared preferences.&lt;/li&gt;
&lt;li&gt;Visualize results and understand why graph databases are a natural fit for recommendation systems.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I wrote this blog for beginners who are curious about using Neo4j to solve real-world problems.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Prerequisites&lt;/strong&gt;
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Before you start, make sure you have Neo4j Desktop installed on your device.&lt;/li&gt;
&lt;li&gt;Basic familiarity with Cypher queries (MATCH, RETURN).&lt;/li&gt;
&lt;li&gt;The Movie dataset, which comes preloaded with most Neo4j instances.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Designing the Movie Graph&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;The dataset models two main entities:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Nodes:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Person&lt;/code&gt; (actors, directors, users)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Movie&lt;/code&gt; (films with title, released year, tagline)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Relationships:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;:ACTED_IN&lt;/code&gt; (Person → Movie)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;:DIRECTED&lt;/code&gt; (Person → Movie)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;:REVIEWED&lt;/code&gt; (Person → Movie, with a rating)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here's the Diagram:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2ukypnsg71abrfnwyuc8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2ukypnsg71abrfnwyuc8.png" alt=" " width="800" height="153"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Loading the Dataset&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;If you’re using Neo4j Browser, you can load the sample Movie dataset with:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;:play movies&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;Follow the instructions to populate your graph with movies, actors, and reviews.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Querying the Graph&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Find Movies by Actor&lt;/strong&gt;&lt;br&gt;
Let’s start simple: find all movies Tom Hanks acted in.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;MATCH (tom:Person {name: "Tom Hanks"})-[:ACTED_IN]-&amp;gt;(m:Movie)  &lt;br&gt;
RETURN m.title, m.released&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Find Co-Actors&lt;/strong&gt;&lt;br&gt;
Who worked alongside Tom Hanks?&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;MATCH (tom:Person {name: "Tom Hanks"})-[:ACTED_IN]-&amp;gt;(m:Movie)&amp;lt;-[:ACTED_IN]-(coActor)  &lt;br&gt;
RETURN coActor.name, collect(m.title) AS movies&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Recommend Movies Based on Reviews&lt;/strong&gt;&lt;br&gt;
Here’s the fun part: recommending movies. Let’s recommend movies to Jessica Thompson based on what people with similar tastes liked.&lt;br&gt;
&lt;code&gt;MATCH (user:Person {name: "Jessica Thompson"})-[:REVIEWED]-&amp;gt;(m:Movie)&amp;lt;-[:REVIEWED]-(other:Person)-[:REVIEWED]-&amp;gt;(rec:Movie)  &lt;br&gt;
WHERE NOT (user)-[:REVIEWED]-&amp;gt;(rec)  &lt;br&gt;
RETURN rec.title AS recommendation, count(*) AS score  &lt;br&gt;
ORDER BY score DESC  &lt;br&gt;
LIMIT 5&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This query works by:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Finding what Jessica reviewed.&lt;/li&gt;
&lt;li&gt;Looking for other people who reviewed the same movies.&lt;/li&gt;
&lt;li&gt;Recommending new movies those people also liked.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Visualizing the Graph&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;One of the strengths of Neo4j is visualization. When you run the queries in Neo4j Browser, you’ll see colorful nodes and relationships, making it easy to understand why a recommendation was made.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Troubleshooting Tips&lt;/strong&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Empty results? Double-check names (they are case-sensitive).&lt;/li&gt;
&lt;li&gt;Slow queries? Add indexes on &lt;code&gt;:Person(name)&lt;/code&gt; and &lt;code&gt;:Movie(title)&lt;/code&gt; .&lt;/li&gt;
&lt;li&gt;Dataset not loading? Make sure you &lt;code&gt;ran :play&lt;/code&gt; movies and followed the load steps.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Conclusion&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Recommendation systems are everywhere, from Netflix to Spotify and graphs provide a natural way to model them. With just a few Cypher queries, we can build a basic movie recommender that feels intuitive and easy to extend.&lt;/p&gt;

&lt;p&gt;Next steps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Add your own user nodes and ratings.&lt;/li&gt;
&lt;li&gt;Try integrating Neo4j with Python or JavaScript for a full-stack app.&lt;/li&gt;
&lt;li&gt;Explore more advanced algorithms with the Neo4j Graph Data Science Library.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;By combining relationships, ratings, and recommendations, Neo4j makes it simple to answer the age-old question: What movie should I watch tonight?&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
