@@ -49,16 +49,78 @@ Run the file using `ts-node` to view the result:
4949ts-node {lab-file}
5050----
5151
52- You can check the result in the Neo4j Browser by running the following query:
52+ If successful, you should see output similar to the following (with your name instead of "Your Name"):
53+
54+ .Expected Output
55+ [source,json,role=nocopy]
56+ ----
57+ {
58+ identity: Integer { low: 12345, high: 0 },
59+ labels: [ 'Person' ],
60+ properties: { name: 'Your Name' },
61+ elementId: '4:abc123:12345'
62+ }
63+ ----
64+
65+ You can also verify the result in the Neo4j Browser by running the following query:
5366
5467[source, cypher]
5568----
5669MATCH (m:Movie {title: "Matrix, The"})<-[a:ACTED_IN]-(p:Person)
5770RETURN m, a, p
5871----
5972
73+ You should see your `Person` node connected to _The Matrix_ movie.
74+
75+
6076include::questions/verify.adoc[leveloffset=+1]
6177
78+
79+ == Troubleshooting
80+
81+ .ts-node: command not found
82+ [%collapsible]
83+ ====
84+ If you receive a `ts-node: command not found` error, you can either:
85+
86+ 1. Install `ts-node` globally:
87+ +
88+ [source,sh]
89+ ----
90+ npm install -g ts-node
91+ ----
92+
93+ 2. Or run via npx:
94+ +
95+ [source,sh,subs=attributes+]
96+ ----
97+ npx ts-node {lab-file}
98+ ----
99+ ====
100+
101+ .Cannot use import statement outside a module
102+ [%collapsible]
103+ ====
104+ This error occurs when Node.js tries to run TypeScript/ES modules as CommonJS.
105+ Ensure your `tsconfig.json` has the correct module settings, or run with:
106+
107+ [source,sh,subs=attributes+]
108+ ----
109+ npx ts-node --esm {lab-file}
110+ ----
111+ ====
112+
113+ .Verification fails but code works
114+ [%collapsible]
115+ ====
116+ If your code runs successfully and creates the node (you can see it in Neo4j Browser) but the verification fails:
117+
118+ 1. Ensure you are using the sandbox provided by GraphAcademy (not a local database)
119+ 2. Check that the Person node was created with an `ACTED_IN` relationship to the movie titled "Matrix, The"
120+ 3. Try refreshing the page and clicking Verify again
121+ ====
122+
123+
62124[.summary]
63125== Lesson Summary
64126
0 commit comments