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

Set event dictionary values at node level on consumer definition #480

Open
IISuperluminaLII opened this issue Jun 22, 2021 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@IISuperluminaLII
Copy link

IISuperluminaLII commented Jun 22, 2021

Feature description (Mandatory)

When defining nodes, it would be nice to be able to set a dictionary value on the initial match set while creating nodes. This is currently possible with node attributes level as described below.

This works

streams.sink.topic.cypher.User=MERGE (n:User {uuid: "65f7g8hg6756fg6f564c7687c65v7b8"}) ON MATCH SET n += event.add_props ON CREATE SET n += event.add_props

where

{
"firstname":'..."
"lastname":"..."
...
}

This does not seem to work

streams.sink.topic.cypher.User=MERGE (n:User event.match_props) ON MATCH SET n += event.add_props ON CREATE SET n += event.add_props

where

{
"uuid":"65f7g8hg6756fg6f564c7687c65v7b8"
}

where

{
"firstname":'..."
"lastname":"..."
...
}

This would enable streams to consume dynamic number of properties to search on and update instead of creating new nodes or having to know the initial properties beforehand.

@moxious moxious added the enhancement New feature or request label Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants