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

v2 go-driver does not have bulk calls to save documents to graph collections present in v1 #650

Open
scirahul opened this issue Jan 29, 2025 · 1 comment

Comments

@scirahul
Copy link

I was using v1 go-driver and am trying to cutover to v2 go-driver. In v2 graph VertexCollection and EdgeCollection are not of Collection type, due to this I am unable to bulk add vertices or edges in a graph collection (possible earlier in v1 using collection.CreateDocuments() call)

Will there be a upcoming enhancement to fix this backward incompatibility?

Please let me know if there is a alternate way of achieving this.

Thanks!

@ajanikow
Copy link
Collaborator

ajanikow commented Feb 6, 2025

Hello!

Overall, they share the same interfaces in V1. VertexCollection is an extension of Collection (as it should be).

Currently, in V2 you can use:

https://github.com/arangodb/go-driver/blob/master/v2/arangodb/database_collection.go#L35

You need to use the same name as in VertexCollection to get a collection object.

We will share Interfaces in the same way as in V1 in the next Release.

Best Regards,
Adam.

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

No branches or pull requests

2 participants