Commit Graph

143 Commits

Author SHA1 Message Date
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
Sunli
5097832539 Fix #327. 2020-10-28 09:39:19 +08:00
Sunli
b124382e9c Add SchemaBuilder::override_description function. 2020-10-27 10:06:10 +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
Sunli
7510741311 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
db312a372d Replace futures with futures_util 2020-10-16 07:49:22 +01:00
Koxiaet
4e562a86a7 Avoid locking extensions mutex when possible 2020-10-16 06:52:52 +01:00
Koxiaet
a48953899c Remove itertools dependency 2020-10-16 06:37:48 +01:00
Sunli
985ee939d4 Add Schema::names function. 2020-10-15 19:36:54 +08:00
Koxiaet
d34ac0ba08 Make imports consistent 2020-10-15 07:38:10 +01:00
Sunli
6dd9483762 Improve performance 2020-10-12 14:49:32 +08:00
Sunli
10cd868f4c Some improvements. 2020-10-10 16:28:07 +08:00
Sunli
1e30712726 Merge branch 'master' into rework-errors 2020-10-01 09:39:47 +08:00