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

merge functionality #248

Closed
ositaunus opened this issue May 25, 2023 · 1 comment
Closed

merge functionality #248

ositaunus opened this issue May 25, 2023 · 1 comment
Assignees
Labels

Comments

@ositaunus
Copy link

ositaunus commented May 25, 2023

is there a db.merge_link/node functionality that would check if the node or link attributes were the same for an already existing node or link before inserting. this is very useful to avoid polluting a graph with duplicates

@apetenchea apetenchea self-assigned this May 26, 2023
@apetenchea
Copy link
Member

Hello @ositaunus,

Currently, our driver does not have a merge_link or merge_node functionality that performs checks for duplicate node or link attributes before inserting. The purpose of our driver is to serve as an interface for the database. While we aim to make it as user-friendly as possible, adding such functionality is presently outside our scope.

The link function is essentially shorthand for inserting a new edge into an edge collection. However, you can implement the checks yourself before calling it by using has_edge and has_vertex functions to determine if a node or link already exists.

While we understand the usefulness of a merge functionality to prevent duplicate entries, the flexibility of our current design allows users to define their own requirements for what constitutes a duplicate. Nevertheless, we appreciate your feedback and will consider it for future updates.

Please checkout our Graphs examples for more information.

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

No branches or pull requests

2 participants