I have a data model with a many to many relation between view 1 and view 2. This is modeled as an edge and stored as columnEdgeView2 in view 1 and has an edge pointing the other direction in the other view. I have been digging through the Python SDK documentation but cannot figure out how to retrieve this information. Can anyone help me with this? What I need to do is query either of the edge properties and do something similar to the instance.list of regular views. If possible, getting the columnEdgeView2 included in the result when listing instances the normal way would also work. I have tried to replicate my data model structure below.
type View1 {
column1: String
columnEdgeView2: [View2]
}
type View2 {
column1: String
columnEdgeView1: [View1] @relation(
type: { space: "space", externalId: "View1.columnEdgeView2" }
direction: INWARDS
)
}
Thank you!