Example

This example demonstrates how to use this Listener to return movie information from Neo4j's in-built example graph database of movies and actors.

Refer to configuration to understand all configuration options of this Agent.

Step 1: Add the Agent

  1. Drag the Neo4j Listener onto the Canvas.

  2. Rename the Agent and link the output endpoint to the printer.

  3. Save the Data Stream.

  4. Double-click to configure the Agent.

Step 2: Configure Server

Enter the server details: the Server URI, Username, and Password. In this case, the Neo4j database is on the local machine so we are not using variables.

Step 3: Configure Database

Set the Database, Label, and Columns to Return. In this case, set the database to "neo4j" and the label to "Movie". Leave the Columns to Return blank to retrieve all of them.

Step 4: Configure Timestamp

Set the Timestamp Column to "released."

Step 5: Results

Apply the changes, save the Data Stream, and publish it.

Now, insert an entry into the database for the listener to pick up, making sure that the "released" property is larger than any of the existing entries.

In this example, we will insert the object '{title:"Tenet", tagline:null, released:2020}' with the Movie label.

Let's take a look at the Live Data View. Observe that the Tenet movie is printed.

Files

See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.

Last updated