How do I run a single node when it's already added to a graph? #153

Closed
opened 2026-02-15 17:16:24 -05:00 by yindo · 4 comments
Owner

Originally created by @oneWalker on GitHub (Dec 25, 2024).

The question is the title, how to trigger a single Node?

Originally created by @oneWalker on GitHub (Dec 25, 2024). The question is the title, how to trigger a single Node?
yindo closed this issue 2026-02-15 17:16:24 -05:00
Author
Owner

@guidorietbroek commented on GitHub (Dec 25, 2024):

This section is for issues.

You should run nodes depending on the edges. Beginnen with START and ending with END.

@guidorietbroek commented on GitHub (Dec 25, 2024): This section is for issues. You should run nodes depending on the edges. Beginnen with START and ending with END.
Author
Owner

@oneWalker commented on GitHub (Dec 26, 2024):

This section is for issues.

You should run nodes depending on the edges. Beginnen with START and ending with END.

single node is not the whole graph. There are two concepts.

Its the whole graph that beignning with STAT and endging with END, not single node.

@oneWalker commented on GitHub (Dec 26, 2024): > This section is for issues. > > You should run nodes depending on the edges. Beginnen with START and ending with END. single node is not the whole graph. There are two concepts. Its the whole graph that beignning with STAT and endging with END, not single node.
Author
Owner

@jacoblee93 commented on GitHub (Dec 30, 2024):

You can do:

await graph.nodes[nodeName].invoke({});

This is not yet documented, will close the issue when it is!

@jacoblee93 commented on GitHub (Dec 30, 2024): You can do: ```ts await graph.nodes[nodeName].invoke({}); ``` This is not yet documented, will close the issue when it is!
Author
Owner

@oneWalker commented on GitHub (Dec 30, 2024):

You can do:

await graph.nodes[nodeName].invoke({});

This is not yet documented, will close the issue when it is!

It works, and thanks a lot for making my codes more clean.
I really appreciate your work on the great library.

@oneWalker commented on GitHub (Dec 30, 2024): > You can do: > > ```ts > await graph.nodes[nodeName].invoke({}); > ``` > > This is not yet documented, will close the issue when it is! It works, and thanks a lot for making my codes more clean. I really appreciate your work on the great library.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#153