-
Notifications
You must be signed in to change notification settings - Fork 617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add web support for Statement #2952
Comments
Could you have a look here? https://github.com/meistermeier/neo4j-issues-examples/tree/master/gh-2952 |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Do you have cypher DSL version?
My api still work in progress and I want use cypher DSL way seems it is recommended in official reference. Also I found there is an official support cypher parser. Anyways, I want the api looks like this:
code @PostMapping("/search")
public List<People> search(@RequestParam org.neo4j.cypherdsl.core.Condition dsl) {
return peopleRepository.findAll(dsl);
}
public interface PeopleRepository extends Neo4jRepository<Person, Long>,
CypherdslConditionExecutor<Person>,
CypherdslStatementExecutor<Person> {
} |
The parser will just return an AST fragment if you parse in a fragment. That fragment than needs to be added to the shell you did build with the cypher DSL Here's basically what you want to do: Here's an example to use the CypherDSL with hole statements: I think that's actually all you need and I would suggest closing this issue. There's nothing we are gonna add in terms of web support, it's all there already. |
I don't get it. |
Something like this
https://docs.spring.io/spring-data/jpa/reference/repositories/core-extensions.html#core.web.type-safe
Currently it seems not work with
Statement
.Test with spring boot 3.3.3
Please add web support, it's very useful for write a complex query api.
The text was updated successfully, but these errors were encountered: