Commit Graph

156 Commits

Author SHA1 Message Date
Sunli 13a66a5013 Skip tracing for introspection queries #841 2022-10-01 16:17:27 +08:00
Sunli 7ecc91f3f0 Federation v1 is no longer supported 2022-09-22 23:34:49 +08:00
aidan coyne 6575fd6741 Revert "default to printing the applicaiton of the link directive"
This reverts commit 64e6e7e7fa.
2022-09-22 09:48:10 -05:00
aidan coyne 64e6e7e7fa default to printing the applicaiton of the link directive
change to providing a method to opt-out of printing it.
2022-09-20 08:12:54 -05:00
aidan coyne 66f8bb46b2 re-format 2022-09-19 16:19:29 -05:00
aidan coyne 89dca3e125 clean up some mistakes, ensure existing tests pass 2022-09-19 15:43:46 -05:00
aidan coyne 9e105f2628 implement a simple approach to using the link directive
this is probably the simple way to get the link directive in place for
federation 2 support - simply add a flag to the registry, and print out
a hardcoded link directive configured for the current needs of
async-graphql.
2022-09-19 15:43:46 -05:00
Nicolas Moutschen 2ffee68ad4 feat: add @tag support 2022-08-22 11:44:02 +02:00
Sunli 4877917145
Merge pull request #1026 from nmoutschen/fed2-inaccessible
Add Apollo Federation `@inaccessible` directive support
2022-08-18 21:38:06 +08:00
Nicolas Moutschen 619013d90c feat: @inaccessible support 2022-08-18 11:40:04 +02:00
cw-ozaki 258ab70268 fixes lost when request.data(X) in an extension 2022-08-12 20:34:46 +09:00
Sunli 1f67e3adcd Limits the recursion depth of the parser. 2022-08-09 11:06:20 +08:00
Sunli 521769b800 Limit recursive depth to 256 by default 2022-07-21 10:14:40 +08:00
Douman e4b1f721aa Expose IntrospectionMode 2022-05-27 12:54:40 +09:00
Sunli 92234d7a75 Add `Schema::build_with_ignore_name_conflicts` method to specifies a list to ignore type conflict detection. 2022-05-24 20:08:35 +08:00
Sunli 8011b9a120 Add some options for exporting SDL. #877 2022-05-05 20:09:35 +08:00
Paul Nguyen ea5cbfdfab Remove obsolete `disable_introspection` field in `Request` 2022-05-02 18:12:06 +02:00
Sunli 93763997af Rework connection types 2022-04-19 19:18:06 +08:00
Paul Nguyen 0ebcccd8d9 Allow introspection only schemas 2022-04-18 21:25:02 +02:00
Sunli 4eab572409 Remove useless `ParseQueryFut` type 2022-04-15 15:31:07 +08:00
Douman a78b1415b9 Introduce ability to pre-parse Request's query 2022-04-15 15:58:09 +09:00
Sunli 632529ee3e Add support for oneof field on object. #766 2022-03-04 21:24:17 +08:00
Sunli 334307b2c2 Add `Union` and `Interface` support for trait objects. #780
Clippy clean
2022-01-11 09:35:09 +08:00
Sunli 81e4cc2142 Custom directive 2021-11-20 09:04:46 +08:00
Sunli e0c557a1a6 Add DirectivesUnique rule 2021-11-18 20:14:56 +08:00
Sunli 26275aaa4b Remove skipped fields from the document before executing the query. 2021-11-18 19:37:10 +08:00
Sunli 8750d8d34b Rework validators 2021-11-14 21:09:14 +08:00
Sunli 20b73e06f4 Move the methods of the `Type` trait to `InputType` and `OutputType`. 2021-11-12 07:23:05 +08:00
Sunli d116dc2950 Make `Schema::execute` return HTTP headers when an error occurs. #572 2021-07-16 07:47:43 +08:00
Sunli 7cb30db2f2 Fix the bug that `MergedObject` may cause panic. #539 2021-06-21 09:48:19 +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 8c896f96e1 Remove spin crate from dependencies 2021-04-08 11:41:15 +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 7000651b88 Rework Extension 2021-04-04 14:37:41 +08:00
Sunli 39609cf116 Remove `SchemaBuilder::override_name` method. #437 2021-03-31 16:54:57 +08:00
Sunli f62843cbd3 Add `Request::disable_introspection` method. #456 2021-03-30 11:59:57 +08:00
Sunli cc937b70b5 Rework Extension & TracingExtension & OpenTelemetryExtension 2021-03-26 12:03:10 +08:00
Sunli aa1e72e68e Add `SchemaBuilder::enable_subscription_in_federation` method. #449 2021-03-20 17:22:18 +08:00
Sunli a51abb7284 Add `SchemaBuilder::override_name` method. #437 2021-03-09 18:07:18 +08:00
Sunli cd8da606f2 When introspection is disabled, introspection related types are no longer registered. 2021-02-23 12:49:41 +08:00
Sunli 95e372e0d3 Add `Send + Sync` constraints for `InputType`, `OutputType` and `SubscriptionType`. 2021-01-14 12:41:59 +08:00
Naaman Curtis b16d7c8aac
update response to correctly carry headers through (#384)
* update response to correctly carry headers through
2021-01-11 08:05:51 +08:00
Sunli 1897859b91 Add `Context::set_http_header` method. #370 2021-01-10 08:06:48 +08:00
Sunli ed1dce4985 Add `Schema::federation_sdl` method. #376 2021-01-06 11:01:13 +08:00
Sunli a0e05b9c92 Add dataloader 2020-12-21 13:33:36 +08:00
Sunli bbb7124616 Add Analyzer extension. 2020-12-18 23:58:03 +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