MCPcopy Create free account
hub / github.com/AppFlowy-IO/AppFlowy-Collab / get_folder_data

Method get_folder_data

collab/src/folder/folder.rs:162–165  ·  view source on GitHub ↗

Fetches the folder data based on the current workspace and view. This function initiates a transaction on the root node and uses it to fetch the current workspace and view. It also fetches all workspaces and their respective views. It goes through all the workspaces and fetches the views recursively for each workspace. # Returns `Some(FolderData)`: If the operation is successful, it returns `S

(&self, workspace_id: &str, uid: Option<i64>)

Source from the content-addressed store, hash-verified

160 /// * `None`: If the operation is unsuccessful (though it should typically not be the case as `Some`
161 /// is returned explicitly), it returns `None`.
162 pub fn get_folder_data(&self, workspace_id: &str, uid: Option<i64>) -> Option<FolderData> {
163 let txn = self.collab.transact();
164 self.body.get_folder_data(&txn, workspace_id, uid)
165 }
166
167 /// Fetches the current workspace. The uid parameter is accepted for API consistency
168 /// but not used as workspace data is shared across all users.

Calls 11

get_view_with_txnMethod · 0.80
get_current_viewMethod · 0.80
section_opMethod · 0.80
get_sectionsMethod · 0.80
transactMethod · 0.45
as_refMethod · 0.45
get_views_belong_toMethod · 0.45
extendMethod · 0.45