Home / Companies / Neo4j / Blog / Post Details
Content Deep Dive

Query Neo4j From Tcl

Blog post from Neo4j

Post Details
Company
Date Published
Author
Stuart Green
Word Count
686
Company Posts That Month
16
Language
English
Hacker News Points
-
Post removed?
No
Summary

In this article, we explore how to use Tcl's HTTP functionality to query a graph database via the Neo4j Query API. To make/secure HTTP requests and handle the JSON payload, additional packages are required, including tcllib, tcl-tls, json::write, and json. We define a procedure `neo4j_query` that performs the Cypher query and returns the result as a dictionary. The procedure takes two arguments: `cypher`, which defines the graph database query, and `db`, which holds the Neo4j settings. We create a dictionary to hold the Neo4j settings and use this with the Cypher query string to call the `neo4j_query` procedure. The returned dictionary contains two keys: `values` and `fields`. We provide an example using the Northwind database hosted on a Neo4j demo server, identifying all products in the 'Dairy Products' category.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.