pub fn add_edge_definition<N, From, To>(
        self,
        collection_name: N,
        from: From,
        to: To,
    ) -> Result<GraphSession<C>>
    where
        N: Into<String>,
        From: IntoIterator<Item = String>,
        To: IntoIterator<Item = String>,
    {
        self.execute(AddEdgeDefinition::new(
            self.name(),
            EdgeDefinition::new(collection_name, from, to),
        )).map(|graph| {
            GraphSession::new(
                Entity::Object(graph),
                self.database_name,
                self.connector,
                self.core,
            )
        })
    }
/// Adds an edge definition to the graph represented by this session.
///
/// # Arguments
///
/// * `collection_name` : The name of the edge collection
/// * `from` : One or many vertex collections that can contain source
/// vertices * `to` : One or many vertex collections that can contain
/// target vertices
///
/// It returns a new `GraphSession` representing the updated graph.
Adds an edge definition to the graph represented by this session.
Adds an edge definition to the graph represented by this session .
pub fn add_edge_definition<N, From, To>(
        self,
        collection_name: N,
        from: From,
        to: To,
    ) -> Result<GraphSession<C>>
    where
        N: Into<String>,
        From: IntoIterator<Item = String>,
        To: IntoIterator<Item = String>,
    {
        self.execute(AddEdgeDefinition::new(
            self.name(),
            EdgeDefinition::new(collection_name, from, to),
        )).map(|graph| {
            GraphSession::new(
                Entity::Object(graph),
                self.database_name,
                self.connector,
                self.core,
            )
        })
    }
pub fn add_edge_definition < N , From , To > ( self , collection_name : N , from : From , to : To , ) -> Result < GraphSession < C > > where N : Into < String > , From : IntoIterator < Item = String > , To : IntoIterator < Item = String > , { self . execute ( AddEdgeDefinition :: new ( self . name ( ) , EdgeDefinition :: new ( collection_name , from , to ) , ) ) . map ( | graph | { GraphSession :: new ( Entity :: Object ( graph ) , self . database_name , self . connector , self . core , ) } ) }
Adds an edge definition to the graph represented by this session.
Adds an edge definition to the graph represented by this session .
self
collection_name
N
from
From
to
To
self
collection_name
N
from
From
to
To