Closed PumpedSardines closed 1 year ago
@PumpedSardines this syntax is available on latest master
only. For juniper 0.15 you should use:
#[graphql(arguments(user_id(name = "id")))]
pub fn user(
context: &GraphQLContext,
user_id: i32,
) -> Option<resolvers::user::User> {
See details in Book for that version: https://github.com/graphql-rust/juniper/blob/juniper-v0.15.10/docs/book/content/types/objects/complex_fields.md#customizing-arguments
Thanks
Describe the bug the graphql macro is being ignored when used for parameters.
To Reproduce Heres a snippet of my code. When entering the playground the parameter for user will be
userId
notid
.Expected behavior The parameter name should be
id
notuserId
Additional context When running the
juniper_actix
example this does not happen.Here's my Config.toml: