pub struct QueryJoinConfig {
pub id: String,
pub keys: Vec<QueryJoinKeyConfig>,
}Expand description
Synthetic join configuration for queries
QueryJoinConfig defines a virtual relationship between node types from different
sources. This allows queries to join data without requiring physical relationships
in the source systems.
§Join Semantics
Joins create synthetic edges by matching property values across nodes. The id
field specifies the relationship type used in the query’s MATCH pattern, and keys
define which properties to match.
§Examples
§Simple Join on Single Property
joins:
- id: CUSTOMER # Use in query: MATCH (o:Order)-[:CUSTOMER]->(c:Customer)
keys:
- label: Order
property: customer_id # Order.customer_id
- label: Customer
property: id # Customer.id
# Creates edge when Order.customer_id == Customer.id§Multi-Source Join
joins:
- id: ASSIGNED_TO
keys:
- label: Task
property: assignee_id
- label: User
property: user_idFields§
§id: StringUnique identifier for the join (should match relationship type in query)
keys: Vec<QueryJoinKeyConfig>Keys defining the join relationship
Trait Implementations§
Source§impl Clone for QueryJoinConfig
impl Clone for QueryJoinConfig
Source§fn clone(&self) -> QueryJoinConfig
fn clone(&self) -> QueryJoinConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueryJoinConfig
impl Debug for QueryJoinConfig
Source§impl<'de> Deserialize<'de> for QueryJoinConfig
impl<'de> Deserialize<'de> for QueryJoinConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<QueryJoinConfig> for QueryJoin
impl From<QueryJoinConfig> for QueryJoin
Source§fn from(config: QueryJoinConfig) -> Self
fn from(config: QueryJoinConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for QueryJoinConfig
impl RefUnwindSafe for QueryJoinConfig
impl Send for QueryJoinConfig
impl Sync for QueryJoinConfig
impl Unpin for QueryJoinConfig
impl UnwindSafe for QueryJoinConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more