juniper/juniper_codegen/src
Jonas Meurer fe99e1cc70
Allow specifying scalar and context for GraphQLEnum (#621)
* Updated implementation of derive enum

- allows context specification
- allows scalar specification
- shares code with derive object

* Added this feature to CHANGELOG

* Added matrix with supported macro attributes for enums

* Added case which checks for custom context

* GraphQLUnion now can use a different context per variant

* Moved context switch test for union into right folder

* Sync resolve expression has the same form as the other impls

* Disabled custom scalar on GraphQLEnum

* Fixed CHANGELOG

* Fixed support matrix of GraphQLEnum in the book

- scalar not supported!
- skip not supported!

* Added test case for "noasync" derive attribute

* Disallowed generics and lifetimes on GraphQLEnum

* Added error message for duplicate naming

* Added error message for empty variant
2020-04-17 19:09:04 -10:00
..
util Allow specifying scalar and context for GraphQLEnum (#621) 2020-04-17 19:09:04 -10:00
derive_enum.rs Allow specifying scalar and context for GraphQLEnum (#621) 2020-04-17 19:09:04 -10:00
derive_input_object.rs Clippy cleanup (#579) 2020-03-20 09:11:06 -07:00
derive_object.rs Fix some clippy lints (#564) 2020-03-13 22:03:36 -07:00
derive_scalar_value.rs Fix some clippy lints (#564) 2020-03-13 22:03:36 -07:00
derive_union.rs Derive macro for tagged enums (GraphQLUnion) (#618) 2020-04-14 21:58:45 -10:00
impl_object.rs Clippy cleanup (#579) 2020-03-20 09:11:06 -07:00
impl_union.rs Fix some clippy lints (#564) 2020-03-13 22:03:36 -07:00
lib.rs Allow specifying scalar and context for GraphQLEnum (#621) 2020-04-17 19:09:04 -10:00