-
I have quite a few resolvers inside this impl block and would like to split it into multiple files #[graphql_object(context=Ctx, scalar = RustScalarValue)]
impl Query {
async fn resolver1<'db>(&self, context: &'db Ctx, ...) -> FieldResult<i32> { ... }
async fn resolver2<'db>(&self, context: &'db Ctx, ...) -> FieldResult<i32> { ... }
async fn resolver3<'db>(&self, context: &'db Ctx, ...) -> FieldResult<i32> { ... }
// more resolvers ...
} If I try to split it into multiple files it gives me this error
as soon as I add I wonder if there is a way around that. |
Beta Was this translation helpful? Give feedback.
Answered by
tyranron
Mar 28, 2022
Replies: 1 comment
-
@rimutaka at the moment: no. See more detailed discussion in #646. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tyranron
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@rimutaka at the moment: no.
See more detailed discussion in #646.