Skip to content

Conversation

@JeroenDeDauw
Copy link
Member

Adds a demo parser function {{#cypher_raw: query}} that executes read-only Cypher queries and displays the JSON-encoded results.

  • Write queries are rejected using CypherQueryFilter
  • Output is HTML-escaped and displayed in a code block
  • Includes i18n messages for error states
  • Adds demo page showing usage

Fixes #451


Replaces #465 with a clean single commit.

Adds a demo parser function `{{#cypher_raw: query}}` that executes
read-only Cypher queries and displays the JSON-encoded results.

- Write queries are rejected using CypherQueryFilter
- Output is HTML-escaped and displayed in a code block
- Includes i18n messages for error states
- Adds demo page showing usage

Fixes #451

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
JeroenDeDauw and others added 2 commits January 28, 2026 20:48
Display each query in a syntax-highlighted code block above its
execution result so readers can see what query produced what output.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@JeroenDeDauw
Copy link
Member Author

image

'''As a developer:'''

* View Subject JSON: [[Special:NeoJson/ACME_Inc]] (developer UI, normal users will not see JSON. [https://github.com/ProfessionalWiki/NeoWiki/blob/master/docs/SubjectFormat.md View docs])
* Query the graph database: [[Cypher raw example]]
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be Cypher, or Cypher.wikitext should be renamed.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch

I did not realize this came from a commit in this PR so the fix landed in the follow up at

@malberts malberts merged commit 95d10a9 into master Jan 28, 2026
7 checks passed
@malberts malberts deleted the add-cypher-raw-parser-function branch January 28, 2026 21:27
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.

Create cypher_raw parser function

3 participants