Reading Data from Neo4j

Complete the code block below by identifying the correct method for executing a Cypher statement in a read transaction.

Complete the Code block

Use the dropdown to select the correct method for reading data from Neo4j.

js
const res = await session./*select:<-[:ACTED_IN]-*/(
  tx => {
    // Use tx.run to read from the database
  }
)
  • ❏ read

  • ❏ readQuery

  • ✓ executeRead

  • ❏ executeWrite

Once you have selected your answer, click Check Answer to continue.

Hint

You are looking to execute a read query against the database.

Solution

The answer is executeRead

Lesson Summary

In this challenge you successfully recognised the correct method for executing a Cypher statement in a read transaction.

In the next lesson, you will execute a Cypher statement in a read transaction.