@@ -22,7 +22,11 @@ use crate::{
22
22
} ,
23
23
model:: { RootNode , SchemaType , TypeType } ,
24
24
} ,
25
- types:: { base:: { GraphQLType , GraphQLValue } , name:: Name , async_await:: GraphQLValueAsync } ,
25
+ types:: {
26
+ async_await:: { GraphQLTypeAsync , GraphQLValueAsync } ,
27
+ base:: { GraphQLType , GraphQLValue } ,
28
+ name:: Name ,
29
+ } ,
26
30
value:: { DefaultScalarValue , ParseScalarValue , ScalarValue , Value } ,
27
31
GraphQLError ,
28
32
} ;
@@ -754,9 +758,9 @@ pub fn execute_validated_query<'a, 'b, QueryT, MutationT, SubscriptionT, CtxT, S
754
758
) -> Result < ( Value < S > , Vec < ExecutionError < S > > ) , GraphQLError < ' a > >
755
759
where
756
760
S : ScalarValue ,
757
- QueryT : GraphQLValue < S , Context = CtxT > ,
758
- MutationT : GraphQLValue < S , Context = CtxT > ,
759
- SubscriptionT : GraphQLValue < S , Context = CtxT > ,
761
+ QueryT : GraphQLType < S , Context = CtxT > ,
762
+ MutationT : GraphQLType < S , Context = CtxT > ,
763
+ SubscriptionT : GraphQLType < S , Context = CtxT > ,
760
764
{
761
765
if operation. item . operation_type == OperationType :: Subscription {
762
766
return Err ( GraphQLError :: IsSubscription ) ;
@@ -848,11 +852,11 @@ pub async fn execute_validated_query_async<'a, 'b, QueryT, MutationT, Subscripti
848
852
) -> Result < ( Value < S > , Vec < ExecutionError < S > > ) , GraphQLError < ' a > >
849
853
where
850
854
S : ScalarValue + Send + Sync ,
851
- QueryT : GraphQLValueAsync < S , Context = CtxT > + Send + Sync ,
855
+ QueryT : GraphQLTypeAsync < S , Context = CtxT > + Send + Sync ,
852
856
QueryT :: TypeInfo : Send + Sync ,
853
- MutationT : GraphQLValueAsync < S , Context = CtxT > + Send + Sync ,
857
+ MutationT : GraphQLTypeAsync < S , Context = CtxT > + Send + Sync ,
854
858
MutationT :: TypeInfo : Send + Sync ,
855
- SubscriptionT : GraphQLValue < S , Context = CtxT > + Send + Sync ,
859
+ SubscriptionT : GraphQLType < S , Context = CtxT > + Send + Sync ,
856
860
SubscriptionT :: TypeInfo : Send + Sync ,
857
861
CtxT : Send + Sync ,
858
862
{
@@ -995,9 +999,9 @@ where
995
999
' d : ' r ,
996
1000
' op : ' d ,
997
1001
S : ScalarValue + Send + Sync ,
998
- QueryT : GraphQLValueAsync < S , Context = CtxT > + Send + Sync ,
1002
+ QueryT : GraphQLTypeAsync < S , Context = CtxT > + Send + Sync ,
999
1003
QueryT :: TypeInfo : Send + Sync ,
1000
- MutationT : GraphQLValueAsync < S , Context = CtxT > + Send + Sync ,
1004
+ MutationT : GraphQLTypeAsync < S , Context = CtxT > + Send + Sync ,
1001
1005
MutationT :: TypeInfo : Send + Sync ,
1002
1006
SubscriptionT : crate :: GraphQLSubscriptionType < S , Context = CtxT > + Send + Sync ,
1003
1007
SubscriptionT :: TypeInfo : Send + Sync ,
0 commit comments