Commit Graph

150 Commits

Author SHA1 Message Date
aidan coyne
3c6076a469 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
15afe01f7a feat: add @tag support 2022-08-22 11:44:02 +02:00
Sunli
695ea81c2f Merge pull request #1026 from nmoutschen/fed2-inaccessible
Add Apollo Federation `@inaccessible` directive support
2022-08-18 21:38:06 +08:00
Nicolas Moutschen
06973ee09b feat: @inaccessible support 2022-08-18 11:40:04 +02:00
cw-ozaki
3364d77bd5 fixes lost when request.data(X) in an extension 2022-08-12 20:34:46 +09:00
Sunli
d339e011fa Limits the recursion depth of the parser. 2022-08-09 11:06:20 +08:00
Sunli
07c1a2e684 Limit recursive depth to 256 by default 2022-07-21 10:14:40 +08:00
Douman
bf054b0872 Expose IntrospectionMode 2022-05-27 12:54:40 +09:00
Sunli
d0bb37f419 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
de4f908812 Add some options for exporting SDL. #877 2022-05-05 20:09:35 +08:00
Paul Nguyen
903ebd0060 Remove obsolete disable_introspection field in Request 2022-05-02 18:12:06 +02:00
Sunli
88ba75ec70 Rework connection types 2022-04-19 19:18:06 +08:00
Paul Nguyen
09f3be4fd1 Allow introspection only schemas 2022-04-18 21:25:02 +02:00
Sunli
2f0bcaa8ee Remove useless ParseQueryFut type 2022-04-15 15:31:07 +08:00
Douman
22d61df4d7 Introduce ability to pre-parse Request's query 2022-04-15 15:58:09 +09:00
Sunli
a4b840a984 Add support for oneof field on object. #766 2022-03-04 21:24:17 +08:00
Sunli
707890e551 Add Union and Interface support for trait objects. #780
Clippy clean
2022-01-11 09:35:09 +08:00
Sunli
1b50738af7 Custom directive 2021-11-20 09:04:46 +08:00
Sunli
e2c6ead1a3 Add DirectivesUnique rule 2021-11-18 20:14:56 +08:00
Sunli
eb9cda4c80 Remove skipped fields from the document before executing the query. 2021-11-18 19:37:10 +08:00
Sunli
eb022a0cca Rework validators 2021-11-14 21:09:14 +08:00
Sunli
0e9e087691 Move the methods of the Type trait to InputType and OutputType. 2021-11-12 07:23:05 +08:00
Sunli
8f8fe3e46d Make Schema::execute return HTTP headers when an error occurs. #572 2021-07-16 07:47:43 +08:00
Sunli
c367f15b05 Fix the bug that MergedObject may cause panic. #539 2021-06-21 09:48:19 +08:00
Sunli
f992e8ab94 Add the operation_name to Extension::execute method. 2021-06-10 10:17:33 +08:00
Sunli
e7382bf549 Rework error propagation. #531 2021-06-08 10:05:30 +08:00
Sunli
f8021c0fb5 Add support for returning multiple resolver errors. #531 2021-06-07 14:03:36 +08:00
Sunli
9ab9a60ec0 Remove spin crate from dependencies 2021-04-08 11:41:15 +08:00
Sunli
a9ac598e2e Add secret attribute for arguments, they will not appear in the log. #463 2021-04-07 19:40:19 +08:00
Sunli
824356d118 Rework Extension 2021-04-04 14:37:41 +08:00
Sunli
662454c103 Remove SchemaBuilder::override_name method. #437 2021-03-31 16:54:57 +08:00
Sunli
e899885aa8 Add Request::disable_introspection method. #456 2021-03-30 11:59:57 +08:00
Sunli
05911f3516 Rework Extension & TracingExtension & OpenTelemetryExtension 2021-03-26 12:03:10 +08:00
Sunli
6e2fe32be0 Add SchemaBuilder::enable_subscription_in_federation method. #449 2021-03-20 17:22:18 +08:00
Sunli
272fea205d Add SchemaBuilder::override_name method. #437 2021-03-09 18:07:18 +08:00
Sunli
2953ed059c When introspection is disabled, introspection related types are no longer registered. 2021-02-23 12:49:41 +08:00
Sunli
b054fc0704 Add Send + Sync constraints for InputType, OutputType and SubscriptionType. 2021-01-14 12:41:59 +08:00
Naaman Curtis
78a1ea1910 update response to correctly carry headers through (#384)
* update response to correctly carry headers through
2021-01-11 08:05:51 +08:00
Sunli
1e449f9da6 Add Context::set_http_header method. #370 2021-01-10 08:06:48 +08:00
Sunli
65ca9ef605 Add Schema::federation_sdl method. #376 2021-01-06 11:01:13 +08:00
Sunli
af1d501d75 Add dataloader 2020-12-21 13:33:36 +08:00
Sunli
0d76987f40 Add Analyzer extension. 2020-12-18 23:58:03 +08:00
Sunli
bf9e3ec578 Improve depth and complex. 2020-12-18 18:56:28 +08:00
Sunli
ba23761cb4 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
5dc4223d5c Fix #327. 2020-10-28 09:39:19 +08:00
Sunli
e34f1351bd Add SchemaBuilder::override_description function. 2020-10-27 10:06:10 +08:00
Sunli
e1be5d5537 Fix typo 2020-10-22 10:11:47 +08:00
Sunli
e3d693da28 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
Sunli
83a0028085 Fix the bug that ʻExtension::prepare_request` cannot get the correct request data through the context.
Add test code for extension.
2020-10-18 11:24:16 +08:00
Koxiaet
12fe7445c7 Replace futures with futures_util 2020-10-16 07:49:22 +01:00