Skip to content
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

Allow Enums in custom procedures #13502

Closed
TomVanWemmel opened this issue Aug 7, 2024 · 1 comment
Closed

Allow Enums in custom procedures #13502

TomVanWemmel opened this issue Aug 7, 2024 · 1 comment

Comments

@TomVanWemmel
Copy link

TomVanWemmel commented Aug 7, 2024

The Neo4j Type System does not allow Enum types for parameters in custom procedures/functions.
We can work around this with a String that represents the label, but it would be easier if Neo4j handles the conversion and validation of Enums.

For instance: we use org.neo4j.graphdb.Direction often as parameter to go from start-node to end-node or the other way around

@parnmatt
Copy link
Contributor

parnmatt commented Aug 9, 2024

The procedure framework only deals with converting to and from the Java type system and the AnyValue types (our internal type system used by Cypher and the kernel).

Currently the internally used Neo4j type system does not support enums types, so there's nothing to map to and from. There are long running discussions in regards to enum types potentially being added, but so far we cannot give any promises if enums will be added to Cypher or Kernel type systems.

In general we're not looking to expand the procedure framework functionality too much, unless new types are added into the type systems. If we add enums to Cypher, then we may expand the procedure framework to support something that might be able to be mapped to a Java Enum.

@parnmatt parnmatt closed this as completed Aug 9, 2024
@parnmatt parnmatt closed this as not planned Won't fix, can't repro, duplicate, stale Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants