Skip to content

Commit f914322

Browse files
committed
Mention #[graphql_interface] macro in CHANGELOG (#682)
1 parent 6d4a0a8 commit f914322

File tree

1 file changed

+26
-17
lines changed

1 file changed

+26
-17
lines changed

juniper/CHANGELOG.md

+26-17
Original file line numberDiff line numberDiff line change
@@ -36,26 +36,33 @@
3636
## Fixes
3737

3838
- 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.
4343

4444
- 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.
4956

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+
```
5966

6067
- Added support for renaming arguments within a GraphQL object. ([#631](https://github.com/graphql-rust/juniper/pull/631))
6168
- Example:
@@ -87,6 +94,8 @@
8794

8895
- Removed the deprecated `ScalarValue` custom derive. Use `GraphQLScalarValue` instead.
8996

97+
- Removed the `graphql_interface!` macro. Use the `#[graphql_interface]` proc macro instead.
98+
9099
- Removed the `graphql_union!` macro. Use the `#[graphql_union]` proc macro or custom resolvers for the `#[derive(GraphQLUnion)]` instead.
91100

92101
- The `#[derive(GraphQLUnion)]` macro no longer generates `From` impls for enum variants. ([#666](https://github.com/graphql-rust/juniper/pull/666))

0 commit comments

Comments
 (0)