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

Load an existing graph #78

Open
Amodio opened this issue Jan 29, 2023 · 1 comment
Open

Load an existing graph #78

Amodio opened this issue Jan 29, 2023 · 1 comment
Labels
question Further information is requested

Comments

@Amodio
Copy link

Amodio commented Jan 29, 2023

Hello,

I am using GraphNew() to play with Redis Graph, my problem is that the existing nodes&edges are not loaded in the graph structure.
The workaround I have is to read the graph (nodes + edges), delete the graph and add these back inside, then do my work.

As mentioned in the doc, Commit() rebuilds an entire Graph so I can use it only once.
Is there any better solution?

@swilly22
Copy link
Contributor

That's a good point.
At the moment creating a Graph object against an already existing graph key won't populate the client-side object, one will have to fetch the data and construct manually.

@swilly22 swilly22 added the question Further information is requested label Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants