Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

Feature request: getOrCreateNode flag #76

Open
ch-ricardor opened this issue May 2, 2018 · 0 comments
Open

Feature request: getOrCreateNode flag #76

ch-ricardor opened this issue May 2, 2018 · 0 comments

Comments

@ch-ricardor
Copy link

getOrCreateNode

lknU_n <- getOrCreateNode(graph,"Contact" ...

Is it possible to have a flag to know if the node was retrieved or created?

I would like to trigger different actions:

  • after-create
  • on-exists

Scenario:
Merging several file transmissions from different countries using the same db.schema with different or same data included.

Code interpretation:
getOrCreateNode = createNode ( using constraints ) + getNode

node = try(createNode(graph, .label, ...), TRUE)
_constraint validation _
if("try-error" %in% class(node)) {
node = getUniqueNode(graph, .label, props[1])
}

return(node)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant