|
36 | 36 | ## Fixes
|
37 | 37 |
|
38 | 38 | - Massively improved the `#[graphql_union]` proc macro. ([#666](https://github.com/graphql-rust/juniper/pull/666)):
|
39 |
| - - Applicable to traits. |
40 |
| - - Supports custom resolvers. |
41 |
| - - Supports generics. |
42 |
| - - Supports multiple `#[graphql_union]` attributes. |
| 39 | + - Applicable to traits. |
| 40 | + - Supports custom resolvers. |
| 41 | + - Supports generics. |
| 42 | + - Supports multiple `#[graphql_union]` attributes. |
43 | 43 |
|
44 | 44 | - Massively improved the `#[derive(GraphQLUnion)]` macro. ([#666](https://github.com/graphql-rust/juniper/pull/666)):
|
45 |
| - - Applicable to enums and structs. |
46 |
| - - Supports custom resolvers. |
47 |
| - - Supports generics. |
48 |
| - - Supports multiple `#[graphql]` attributes. |
| 45 | + - Applicable to enums and structs. |
| 46 | + - Supports custom resolvers. |
| 47 | + - Supports generics. |
| 48 | + - Supports multiple `#[graphql]` attributes. |
| 49 | + |
| 50 | +- Massively improved the `#[graphql_interface]` macro. ([#682](https://github.com/graphql-rust/juniper/pull/682)): |
| 51 | + - Applicable to traits and generates enum or trait object to represent a GraphQL interface. |
| 52 | + - Supports passing context and executor to a field resolver. |
| 53 | + - Supports custom downcast functions and methods. |
| 54 | + - Supports generics. |
| 55 | + - Supports multiple `#[graphql_interface]` attributes. |
49 | 56 |
|
50 |
| - - The `GraphQLEnum` derive now supports specifying a custom context. ([#621](https://github.com/graphql-rust/juniper/pull/621)) |
51 |
| - - Example: |
52 |
| - ```rust |
53 |
| - #[derive(juniper::GraphQLEnum)] |
54 |
| - #[graphql(context = CustomContext)] |
55 |
| - enum TestEnum { |
56 |
| - A, |
57 |
| - } |
58 |
| - ``` |
| 57 | +- The `GraphQLEnum` derive now supports specifying a custom context. ([#621](https://github.com/graphql-rust/juniper/pull/621)) |
| 58 | + - Example: |
| 59 | + ```rust |
| 60 | + #[derive(juniper::GraphQLEnum)] |
| 61 | + #[graphql(context = CustomContext)] |
| 62 | + enum TestEnum { |
| 63 | + A, |
| 64 | + } |
| 65 | + ``` |
59 | 66 |
|
60 | 67 | - Added support for renaming arguments within a GraphQL object. ([#631](https://github.com/graphql-rust/juniper/pull/631))
|
61 | 68 | - Example:
|
|
87 | 94 |
|
88 | 95 | - Removed the deprecated `ScalarValue` custom derive. Use `GraphQLScalarValue` instead.
|
89 | 96 |
|
| 97 | +- Removed the `graphql_interface!` macro. Use the `#[graphql_interface]` proc macro instead. |
| 98 | + |
90 | 99 | - Removed the `graphql_union!` macro. Use the `#[graphql_union]` proc macro or custom resolvers for the `#[derive(GraphQLUnion)]` instead.
|
91 | 100 |
|
92 | 101 | - The `#[derive(GraphQLUnion)]` macro no longer generates `From` impls for enum variants. ([#666](https://github.com/graphql-rust/juniper/pull/666))
|
|
0 commit comments