Only accept connections from specific node type #887
Answered
by
bcakmakoglu
FreshLucas-git
asked this question in
Q&A
-
Hi. Can we set a node that only allows connections from a specific source node? For example, Node A and Node B both connect to the Node C in the following image, but I want Node C to only accept connections from Node A. I'm wondering if we can limit a condition in Node C that only accepts connections from a specific source node such as Node A, so that other nodes cannot connect to it. |
Beta Was this translation helpful? Give feedback.
Answered by
bcakmakoglu
Apr 24, 2023
Replies: 1 comment 2 replies
-
You can use the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Validation always happens from the source handle, not the target handle, so you have to pass
isValidConnection
to whatever source handle you're using at the moment.Alternatively you can just allow the connection and catch it in
onConnect
and if you're not happy with the potential connection, just don't create a new edge.