pub fn replace_vertex_synced<New, V>(
        &self,
        key: DocumentKey,
        new_vertex: V,
    ) -> Result<UpdatedDocumentHeader>
    where
        New: 'static + Serialize + Debug,
        V: Into<NewDocument<New>>,
    {
        let vertex_id = DocumentId::new(self.name(), key.unwrap());
        self.execute(
            ReplaceVertex::new(self.graph_name(), vertex_id, new_vertex.into())
                .with_force_wait_for_sync(true),
        )
    }
/// Replaces an existing vertex with a new vertex and waits until the
/// changes are written to disk.
///
/// # Arguments
///
/// * `key` : The key of the vertex to be replaced
/// * `new_vertex` : The new vertex
Replaces an existing vertex with a new vertex and waits until the
changes are written to disk.
Replaces an existing vertex with a new vertex and waits until the changes are written to disk .
pub fn replace_vertex_synced<New, V>(
        &self,
        key: DocumentKey,
        new_vertex: V,
    ) -> Result<UpdatedDocumentHeader>
    where
        New: 'static + Serialize + Debug,
        V: Into<NewDocument<New>>,
    {
        let vertex_id = DocumentId::new(self.name(), key.unwrap());
        self.execute(
            ReplaceVertex::new(self.graph_name(), vertex_id, new_vertex.into())
                .with_force_wait_for_sync(true),
        )
    }
pub fn replace_vertex_synced < New , V > ( & self , key : DocumentKey , new_vertex : V , ) -> Result < UpdatedDocumentHeader > where New : ' static + Serialize + Debug , V : Into < NewDocument < New > > , { let vertex_id = DocumentId :: new ( self . name ( ) , key . unwrap ( ) ) ; self . execute ( ReplaceVertex :: new ( self . graph_name ( ) , vertex_id , new_vertex . into ( ) ) . with_force_wait_for_sync ( true ) , ) }
Replaces an existing vertex with a new vertex and waits until the
changes are written to disk.
Replaces an existing vertex with a new vertex and waits until the changes are written to disk .
&self
key
DocumentKey
new_vertex
V
&self
key
DocumentKey
new_vertex
V