File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ pub fn register_default_gql_functions(registry: &FunctionRegistry) {
4141 register_list_functions ( registry) ;
4242 register_metadata_functions ( registry) ;
4343 register_drasi_functions ( registry) ;
44+ register_context_mutators ( registry) ;
4445 register_aggregation_functions ( registry) ;
4546 register_temporal_instant_functions ( registry) ;
4647 register_temporal_duration_functions ( registry) ;
@@ -93,6 +94,13 @@ fn register_drasi_functions(registry: &FunctionRegistry) {
9394 registry. register_function ( "drasi.stdevp" , Function :: Scalar ( Arc :: new ( DrasiStdevP { } ) ) ) ;
9495}
9596
97+ fn register_context_mutators ( registry : & FunctionRegistry ) {
98+ registry. register_function (
99+ "retainHistory" ,
100+ Function :: ContextMutator ( Arc :: new ( RetainHistory { } ) ) ,
101+ ) ;
102+ }
103+
96104fn register_aggregation_functions ( registry : & FunctionRegistry ) {
97105 registry. register_function ( "sum" , Function :: Aggregating ( Arc :: new ( Sum { } ) ) ) ;
98106 registry. register_function ( "avg" , Function :: Aggregating ( Arc :: new ( Avg { } ) ) ) ;
You can’t perform that action at this time.
0 commit comments