-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#[juniper::graphql_object] != #[derive(juniper::GraphQLObject)] #580
Comments
You need to add "value" as an async function in the proc macro case. This will be fixed when I rip out the sync resolvers. |
We are not going to be removing the sync code. |
I'm having the same problem where I want to nest a type defined with |
If you add juniper/juniper/src/schema/schema.rs Line 134 in 4d77a1a
|
@LegNeato it's not about asyncness, but rather because one of the macros derives code for I'm going to fix this once I finish with interfaces. @loafofpiecrust at the moment, you should specialize the generic implementation by providing attributes argument |
Ah yeah, that's what I figured but wanted to confirm there wasn't any wonkiness going on with our async handling |
Code like this in master branch:
Produce an error:
But code like this works:
The text was updated successfully, but these errors were encountered: