Skip to content

Conversation

@adam-cowley
Copy link
Contributor

Summary

Improves the "Writing Data to Neo4j" lesson in the TypeScript course based on user feedback (84% negative rating).

Changes

Added Expected Output section

Users now see what successful output looks like before running verification, so they can confirm their code works independently of the verify button.

Added Troubleshooting section (collapsible)

Three common issues addressed:

Issue Solution
ts-node: command not found Install globally or use npx ts-node
Cannot use import statement outside a module Use npx ts-node --esm flag
Verification fails but code works Check sandbox usage, movie title, try refresh

Feedback addressed

ID Issue
c36f4359-ae13-4954-a7e6-ac04b7bab6ea ts-node: command not found
78115078-1dc8-4091-837b-dd37f2efa80b Cannot use import statement outside a module
75c5b45e-d95e-4da6-9df8-7cf1d36ff581 "no way to know if I'm on right track"
9cea838f-85ab-4a69-a656-3a0b9a925d8c "Inadequate information"
f8bec257-7334-4b34-9f12-6c09d2f68824 Verification fails but code works
d89143d6-39b3-4881-bfa8-ac64d9a711de Check doesn't work but result correct

Files changed

  • asciidoc/courses/app-typescript/modules/1-driver/lessons/5-c-writing-data/lesson.adoc

Notes

Some feedback issues (JSON errors, sandbox provisioning failures) are infrastructure-related and cannot be addressed through content changes alone.

@adam-cowley adam-cowley force-pushed the fix-app-typescript-20251202 branch from bae103d to fd606c5 Compare December 2, 2025 15:29
----

You can check the result in the Neo4j Browser by running the following query:
If successful, you should see output similar to the following (with your name instead of "Your Name"):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Providing a view of what the user should see is a good addition.

It gives learners:

  1. an indication that they have completed a task successfully
  2. confidence that they can progress.

RETURN m, a, p
----

You should see your `Person` node connected to _The Matrix_ movie.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above. Tell the learner what the expect outcome should be.


== Troubleshooting

.ts-node: command not found
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Troubleshooting - good idea for complex activities. Used as a last resort, we should design the course content so that these scenarios are few, and prepare the learner to be able to solve their own issues.

Im not sure about giving multiple options for fixing an issue:

. use ts-node
. or npx

It prompts questions for the learner:

  • Which one should I use?
  • Is one better than the other?
  • Why am I experiencing this problem?

I would direct them back to the installation instructions in the course which should be comprehensive / robust enough to cover the majority of scenarios.

----
====

.Cannot use import statement outside a module
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feels like a [TIP] if its something we expect to happen often.

We cant control all environment issues on all learners computers though - this is why codespaces are such a positive.

----
====

.Verification fails but code works
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. We could end up putting this on every lesson where the code uses the database though. I would prefer a test at the start to ensure everything is setup correctly before proceeding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants