You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.
I'm afraid that there is no way to achieve it with structs only. But there is a few options:
You can modify you SELECT statement and add an additional return value with a linked node using TRAVERSE or in/out() keywords and then load them into a struct.
You can query you node with any method you want, and add a fields with mapstructure:"E_in" or mapstructure:"E_out", there E stands for relation type. This field must be of []OIdentifiable type (or []RID).
I'll think of a way to implement this behavior. But it can only be optional, because driver will have to fetch all linked nodes. If you have a node with thousands of relations this can be a problem :)
Lets say I have two nodes and I want to keep a relationship between these two nodes. Is there anyway I can model that in a struct? For example:
My question is, is there anyway to use Orient's native edges and graph features but still be able to model them with structs?
The text was updated successfully, but these errors were encountered: