dynamic-graphql-derive 0.10.2

Dynamic GraphQL schema macro
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
macro_rules! from_field {
    ($name:ident, $ty:ty,) => {
        from_field!($name, $ty);
    };
    ($name:ident, $ty:ty) => {
        crate::utils::macros::define!($name, $ty);
        crate::utils::macros::deref!($name, $ty);
        crate::utils::macros::set_context!($name, $ty);

        impl_from!(darling::FromField, from_field, syn::Field, $name,);
    };
}

pub(crate) use from_field;