File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
lib/executor/src/execution Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -522,6 +522,12 @@ impl<'exec> Executor<'exec> {
522
522
node : & FetchNode ,
523
523
representations : Option < Vec < u8 > > ,
524
524
) -> Result < ExecutionJob , PlanExecutionError > {
525
+ let variable_refs = self . variable_values . as_ref ( ) . map ( |vars| {
526
+ vars. iter ( )
527
+ . map ( |( key, value) | ( key. as_str ( ) , value) )
528
+ . collect :: < HashMap < & str , & sonic_rs:: Value > > ( )
529
+ } ) ;
530
+
525
531
Ok ( ExecutionJob :: Fetch ( FetchJob {
526
532
fetch_node_id : node. id ,
527
533
response : self
@@ -532,7 +538,7 @@ impl<'exec> Executor<'exec> {
532
538
query : node. operation . document_str . as_str ( ) ,
533
539
dedupe : self . dedupe_subgraph_requests ,
534
540
operation_name : node. operation_name . as_deref ( ) ,
535
- variables : None ,
541
+ variables : variable_refs ,
536
542
representations,
537
543
} ,
538
544
)
You can’t perform that action at this time.
0 commit comments