1- use crate :: model:: { graph:: { node_id:: GqlNodeId , property:: Value , timeindex:: GqlTimeInput } , plugins:: operation} ;
1+ use crate :: model:: {
2+ graph:: { node_id:: GqlNodeId , property:: Value , timeindex:: GqlTimeInput } ,
3+ plugins:: operation,
4+ } ;
25use async_graphql:: dynamic:: ValueAccessor ;
36use dynamic_graphql:: {
47 internal:: {
@@ -7,16 +10,35 @@ use dynamic_graphql::{
710 Enum , InputObject , OneOfInput ,
811} ;
912use raphtory:: {
10- db:: { api:: { state:: ops:: Degree , view:: internal:: filtered_edge} , graph:: views:: filter:: model:: {
11- ComposableFilter , DynFilter , DynView , NoFilter , ViewWrapOps , degree_filter:: DegreeFilter , edge_filter:: { CompositeEdgeFilter , EdgeFilter } , filter:: { Filter , FilterValue } , filter_operator:: FilterOperator , graph_filter:: GraphFilter , is_active_edge_filter:: IsActiveEdge , is_active_node_filter:: IsActiveNode , is_deleted_filter:: IsDeletedEdge , is_self_loop_filter:: IsSelfLoopEdge , is_valid_filter:: IsValidEdge , latest_filter:: Latest as LatestWrap , layered_filter:: Layered , node_filter:: { CompositeNodeFilter , NodeFilter } , property_filter:: { Op , PropertyFilter , PropertyFilterValue , PropertyRef } , snapshot_filter:: { SnapshotAt as SnapshotAtWrap , SnapshotLatest as SnapshotLatestWrap } , windowed_filter:: Windowed
12- } } ,
13+ db:: {
14+ api:: { state:: ops:: Degree , view:: internal:: filtered_edge} ,
15+ graph:: views:: filter:: model:: {
16+ degree_filter:: DegreeFilter ,
17+ edge_filter:: { CompositeEdgeFilter , EdgeFilter } ,
18+ filter:: { Filter , FilterValue } ,
19+ filter_operator:: FilterOperator ,
20+ graph_filter:: GraphFilter ,
21+ is_active_edge_filter:: IsActiveEdge ,
22+ is_active_node_filter:: IsActiveNode ,
23+ is_deleted_filter:: IsDeletedEdge ,
24+ is_self_loop_filter:: IsSelfLoopEdge ,
25+ is_valid_filter:: IsValidEdge ,
26+ latest_filter:: Latest as LatestWrap ,
27+ layered_filter:: Layered ,
28+ node_filter:: { CompositeNodeFilter , NodeFilter } ,
29+ property_filter:: { Op , PropertyFilter , PropertyFilterValue , PropertyRef } ,
30+ snapshot_filter:: { SnapshotAt as SnapshotAtWrap , SnapshotLatest as SnapshotLatestWrap } ,
31+ windowed_filter:: Windowed ,
32+ ComposableFilter , DynFilter , DynView , NoFilter , ViewWrapOps ,
33+ } ,
34+ } ,
1335 errors:: GraphError ,
1436} ;
15- use raphtory_api:: core:: Direction ;
1637use raphtory_api:: core:: {
1738 entities:: { properties:: prop:: Prop , Layer , GID } ,
1839 storage:: timeindex:: { AsTime , EventTime } ,
1940 utils:: time:: IntoTime ,
41+ Direction ,
2042} ;
2143use serde:: { Deserialize , Serialize } ;
2244use std:: {
@@ -304,7 +326,6 @@ pub struct PropertyFilterNew {
304326 pub where_ : PropCondition ,
305327}
306328
307-
308329/// Filters nodes by computed degree with a directional scope.
309330///
310331/// `DegreeFilterNew` lets callers filter on:
@@ -330,8 +351,8 @@ pub enum DegreeDirection {
330351impl From < DegreeDirection > for Direction {
331352 fn from ( d : DegreeDirection ) -> Self {
332353 match d {
333- DegreeDirection :: In => Direction :: IN ,
334- DegreeDirection :: Out => Direction :: OUT ,
354+ DegreeDirection :: In => Direction :: IN ,
355+ DegreeDirection :: Out => Direction :: OUT ,
335356 DegreeDirection :: Both => Direction :: BOTH ,
336357 }
337358 }
@@ -342,7 +363,7 @@ impl From<DegreeDirection> for String {
342363 match d {
343364 DegreeDirection :: In => "in_degree" . to_string ( ) ,
344365 DegreeDirection :: Out => "out_degree" . to_string ( ) ,
345- DegreeDirection :: Both => "degree" . to_string ( ) ,
366+ DegreeDirection :: Both => "degree" . to_string ( ) ,
346367 }
347368 }
348369}
@@ -1440,8 +1461,8 @@ impl TryFrom<GqlNodeFilter> for CompositeNodeFilter {
14401461 direction : core_direction,
14411462 operator,
14421463 value,
1443- ops
1444- } ) )
1464+ ops,
1465+ } ) )
14451466 }
14461467 GqlNodeFilter :: Property ( prop) => {
14471468 let prop_ref = PropertyRef :: Property ( prop. name . clone ( ) ) ;
0 commit comments