Commit Graph

76 Commits

Author SHA1 Message Date
Sunli 13a66a5013 Skip tracing for introspection queries #841 2022-10-01 16:17:27 +08:00
Nicolas Moutschen 2ffee68ad4 feat: add @tag support 2022-08-22 11:44:02 +02:00
aidan coyne 2bac140833 define override directive on fields
* define the directive field on the field struct
* implement printing it on the federation sdl
* update the derive stuff
* add a test
2022-08-20 15:22:12 -05:00
Nicolas Moutschen 619013d90c feat: @inaccessible support 2022-08-18 11:40:04 +02:00
Damien Pontifex 4bdd28d966 additions so type can also be shareable as well as field 2022-08-17 10:36:00 +08:00
Damien Pontifex 9e9493e232 first passing build with shareable 2022-08-17 09:29:43 +08:00
Sunli f2bac81a2f Remove code and tests related oneof fields. #915 2022-05-07 16:16:01 +08:00
Sunli 93763997af Rework connection types 2022-04-19 19:18:06 +08:00
Douman 560f167f84 Add process_with to methods 2022-04-06 18:25:07 +09:00
Sunli e80e4c9af9 Add support `group` attribute to Object/SimpleObject/ComplexObject/Subscription macros. #838 2022-03-14 09:28:34 +08:00
Sunli 632529ee3e Add support for oneof field on object. #766 2022-03-04 21:24:17 +08:00
Sunli 7ff5741a30 No longer assumes that a subscription stream that failed to resolve has ended. #744 2021-12-07 11:00:53 +08:00
Sunli 5a3ed87255 Rework guards 2021-11-16 10:22:39 +08:00
Sunli e81bc7a97b Custom validator 2021-11-15 11:08:56 +08:00
Sunli 958b534b77 Rework validators 2 2021-11-15 09:12:13 +08:00
Sunli 8750d8d34b Rework validators 2021-11-14 21:09:14 +08:00
Sunli 732e232a8e Hide types that are not referenced by visible fields. #698 2021-11-12 07:24:04 +08:00
Sunli 20b73e06f4 Move the methods of the `Type` trait to `InputType` and `OutputType`. 2021-11-12 07:23:05 +08:00
Sunli 0f1e5a19fd If a GraphQL name conflict is detected when creating schema, it will cause panic. #499 2021-11-08 10:25:31 +08:00
Sunli 3306f85a8a Subscription typename - [GraphQL - October 2021] #681 2021-11-02 20:35:05 +08:00
Sunli 271946eb0c Respect query object field order. #612 2021-10-26 19:02:15 +08:00
OvermindDL1 f57d72b348
Move the `dyn` placement in the `Subscription` macro to the type injection instead of in-place to allow for non-trait implementations (type aliases). 2021-10-21 10:54:07 -06:00
OvermindDL1 9cf85e5a85
Fix the `Subscription` procmacro to work on Rust 2021 by adding the missing required `dyn` keywords in the generated output 2021-10-21 10:35:03 -06:00
Sunli c4cfa24e41 Clippy clean 2021-07-31 23:54:16 +08:00
Sunli 1b173b7588 Allows to get the actual field name and alias in `ResolveInfo`. #551 2021-06-29 09:30:26 +08:00
Sunli 8888897c51 Add the `operation_name` to `Extension::execute` method. 2021-06-10 10:17:33 +08:00
Sunli 553bf37abe Rework error propagation. #531 2021-06-08 10:05:30 +08:00
Sunli dfe8245894 Add support for returning multiple resolver errors. #531 2021-06-07 14:03:36 +08:00
Sunli 5d6b870969 Now when the resolver returns the `Result` type, `E` can be all types that implement `Into<async_graphql::Error>`. 2021-04-09 15:04:01 +08:00
Sunli 6aa191fba5 Add secret attribute for arguments, they will not appear in the log. #463 2021-04-07 19:40:19 +08:00
Sunli d97ddda91d Update subscription.rs 2021-04-04 19:51:41 +08:00
Sunli 7000651b88 Rework Extension 2021-04-04 14:37:41 +08:00
Sunli cc937b70b5 Rework Extension & TracingExtension & OpenTelemetryExtension 2021-03-26 12:03:10 +08:00
Taiki Endo 6ddbc52641 Support generics in Subscription types 2021-03-09 22:21:56 +09:00
Sunli 1e9771a17f Add `extends` attribute for derive macros Subscription and MergedSubscription. 2021-03-09 15:12:14 +08:00
Sunli 938bf83768
Merge pull request #429 from zicklag/master
Improve Resolver Method Return Type Error
2021-03-03 10:51:43 +08:00
Zicklag 22e3a6eb40 Improve Resolver Method Return Type Error 2021-03-02 12:45:07 -06:00
Sunli baa837f2ca Allow the `deprecation` attribute to have no reason. 2021-02-27 11:59:58 +08:00
Sunli 60d4eb5394 Improve the performance of introspection queries. 2021-02-24 12:06:11 +08:00
Sunli ac620c1eea Add support for generic `InputObject`. #387 2021-01-14 11:27:15 +08:00
Sunli f10cda9e78 Add custom complexity for subscription. 2020-12-19 18:39:33 +08:00
Sunli ec82e64a39 Improve depth and complex. 2020-12-18 18:56:28 +08:00
Sunli e29b7a3627 Add `visible` attributes on types, fields, and parameters, allowing some content to be hidden based on conditions. 2020-12-12 16:23:53 +08:00
Sunli 03f6ed4ba2 Rename InputValueType to InputType and OutputValueType to OutputType. 2020-12-11 15:37:50 +08:00
Sunli 778c950f47 Fix async_graphql::Object does not work when inside macro after rust 1.48.0 2020-11-22 09:53:18 +08:00
Sunli 7ed2698d65 Fix #339 2020-11-08 08:00:14 +08:00
Sunli 4323f300fb Subscription macros now correctly report unsupported attribute errors. 2020-11-07 09:13:53 +08:00
Sunli 770ed31508 Add `use_type_description` attribute for derive macros Object, Scalar and Subscription. 2020-10-26 21:34:05 +08:00
Sunli c999dd26dd Fix typo 2020-10-22 10:11:47 +08:00
Sunli 776aadf169 Add entity lookup support for MergedObject.
Add some GraphQL specification constraints for all derived macros.

Use `Registry::create_dummy_type` to create a merged type.
2020-10-20 11:49:31 +08:00