Skip to content

Conversation

@michael-simons
Copy link
Contributor

@michael-simons michael-simons commented Oct 13, 2025

INSERT (n:ThisIsValidCypher) RETURN n

obviously, this here too

MATCH (n:Merge) RETURN n

figuring out whether a query is read only or not with a regex will be kinda problematic in the long run.

Description

Note

Please provide a description of the work completed in this PR below

Type of Change

  • New feature
  • Bug fix
  • Breaking change
  • Documentation update
  • Project configuration change

Complexity

  • LOW
  • MEDIUM
  • HIGH

Complexity:

How Has This Been Tested?

  • Unit tests
  • Integration tests
  • Manual tests

Checklist

The following requirements should have been met (depending on the changes in the branch):

  • Documentation has been updated
  • Unit tests have been updated
  • Integration tests have been updated
  • Server has been tested in an MCP application
  • CHANGELOG.md updated if appropriate

michael-simons and others added 2 commits October 13, 2025 10:49
```cypher
INSERT (n:ThisIsValidCypher) RETURN n
```

obviously, this here too

```MATCH (n:Merge) RETURN n```

figuring out whether a query is read only or not with a regex will be kinda problematic in the long run.
@a-s-g93
Copy link
Collaborator

a-s-g93 commented Oct 30, 2025

thanks @michael-simons! we have plans to update our write query check in the near future.

@rfrneo4j for reference we need to include the INSERT clause in our clauses for Cypher Guard.

@a-s-g93 a-s-g93 merged commit 7bf941b into neo4j-contrib:main Oct 30, 2025
2 checks passed
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.

2 participants