Skip to content

Commit 4866c4c

Browse files
temp fixes
1 parent ebfcea7 commit 4866c4c

5 files changed

Lines changed: 11 additions & 8 deletions

File tree

raphtory-graphql/src/model/graph/edges.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ impl GqlEdges {
319319
//// List ///////
320320
/////////////////
321321

322-
/// Returns the number of edges.
322+
/// Returns the number of edges in the collection.
323323
async fn count(&self) -> usize {
324324
let self_clone = self.clone();
325325
blocking_compute(move || self_clone.ee.len()).await

raphtory-graphql/src/model/graph/filtering.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,9 +449,9 @@ impl TemporalPropertyFilterExpr {
449449

450450
#[derive(Enum, Copy, Clone, Debug)]
451451
pub enum TemporalType {
452-
/// Any.
452+
/// Applies operator to each value in history. Returns true if any value passes and false otherwise.
453453
Any,
454-
/// Latest.
454+
/// Applies operator to the latest value in the window.
455455
Latest,
456456
}
457457

raphtory-graphql/src/model/graph/graph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ impl GqlGraph {
604604
}
605605
}
606606

607-
/// Returns the specified graph view or if none is specified returns the default view.
607+
/// Returns the specified graph view if none is specified returns the current view.
608608
/// This allows you to specify multiple operations together.
609609
async fn apply_views(&self, views: Vec<GraphViewCollection>) -> Result<GqlGraph, GraphError> {
610610
let mut return_view: GqlGraph = GqlGraph::new(self.path.clone(), self.graph.clone());

raphtory-graphql/src/model/graph/nodes.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ impl GqlNodes {
315315
//// List ///////
316316
/////////////////
317317

318+
/// Returns number of nodes in the collection.
318319
async fn count(&self) -> usize {
319320
let self_clone = self.clone();
320321
blocking_compute(move || self_clone.nn.len()).await

raphtory-graphql/src/model/mod.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,15 @@ impl QueryRoot {
156156
let data = ctx.data_unchecked::<Data>();
157157
Namespace::new(data.work_dir.clone(), data.work_dir.clone())
158158
}
159-
/// Returns a plugin.
159+
/// Returns any custom plugins you have added.
160160
async fn plugins<'a>() -> QueryPlugin {
161161
QueryPlugin::default()
162162
}
163-
/// Encodes graph and returns as string
163+
/// Encodes graph and returns as string.
164164
///
165-
/// Returns:: Base64 url safe encoded string
165+
/// Returns:: Base64 url safe encoded string.
166+
///
167+
/// From the python client this can be decoded using the receive graph function.
166168
async fn receive_graph<'a>(ctx: &Context<'a>, path: String) -> Result<String, Arc<GraphError>> {
167169
let path = path.as_ref();
168170
let data = ctx.data_unchecked::<Data>();
@@ -184,7 +186,7 @@ pub(crate) struct Mut(MutRoot);
184186

185187
#[MutationFields]
186188
impl Mut {
187-
/// Returns a collection of mutation plugins.
189+
/// Returns any custom mutation plugins you have added.
188190
async fn plugins<'a>(_ctx: &Context<'a>) -> MutationPlugin {
189191
MutationPlugin::default()
190192
}

0 commit comments

Comments
 (0)