Miaxos
4e86d9f17c
fix: add test case for serializing issue
2021-08-18 14:22:17 +00:00
Sunli
c4cfa24e41
Clippy clean
2021-07-31 23:54:16 +08:00
Sunli
28d22dbe32
Add support for the list
operator to the input value validator. #579
2021-07-20 15:16:34 +08:00
Sunli
1468cc91bb
Implemented OutputType
for Bytes. #569
2021-07-18 21:42:39 +08:00
Yin Jifeng
580a593fa0
Allow field visible to support paths
2021-07-18 20:16:39 +08:00
Sunli
d116dc2950
Make Schema::execute
return HTTP headers when an error occurs. #572
2021-07-16 07:47:43 +08:00
Sunli
80da563b24
Update guard test
2021-07-15 08:09:29 +08:00
Rodgers
abb59b9e3f
Add test for is_valid_with_extensions
2021-07-08 22:06:13 +07:00
Sunli
afecc99085
Add concrete type support for complex object.
2021-07-04 14:05:08 +08:00
Julien Nicoulaud
32d75ec4c9
#550 : add unit test for generic Object/Simple/ComplexObject
2021-07-03 18:00:16 +02:00
Sunli
7cb30db2f2
Fix the bug that MergedObject
may cause panic. #539
2021-06-21 09:48:19 +08:00
Sunli
f5e3329e86
Implement InputType
and OutputType
for [T; N]
array.
2021-06-17 10:39:27 +08:00
Sunli
19669c11f0
Add serial
attribute for MergedObject
macro. #539
2021-06-16 15:08:33 +08:00
Sunli
eecf709a2c
Add serial
attribute for SimpleObject
and Object
macros. #539
2021-06-15 08:53:26 +08:00
Sunli
8888897c51
Add the operation_name
to Extension::execute
method.
2021-06-10 10:17:33 +08:00
Sunli
4c98ad2c92
Allow field guards to support paths. #536
2021-06-08 19:42:53 +08:00
Sunli
6dcb15c945
Update test
2021-06-08 19:04:06 +08:00
Sunli
553bf37abe
Rework error propagation. #531
2021-06-08 10:05:30 +08:00
Sunli
e86e642d5a
Update tests
2021-06-07 14:12:28 +08:00
Sunli
dfe8245894
Add support for returning multiple resolver errors. #531
2021-06-07 14:03:36 +08:00
Sunli
cdd13ea1be
Fix the problem that the ComplexObject
macro cannot work due to the secret
attribute.
2021-04-23 10:25:00 +08:00
Sunli
5831449e07
Add test for drop subscription stream on unsubscribe.
2021-04-13 11:26:55 +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
22a5e71215
Improve Extensions.
2021-04-05 12:21:02 +08:00
Sunli
7000651b88
Rework Extension
2021-04-04 14:37:41 +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
e991ffb814
Fix internal context missing when there's no connection_init frame. #451
2021-03-24 17:24:12 +08:00
Sunli
bec0fc18a9
Add ComplexObject macro. #355
2021-03-18 10:13:46 +08:00
Sunli
5c644de219
Switch the async runtime used for testing to Tokio.
2021-03-12 12:47:24 +08:00
Taiki Endo
6ddbc52641
Support generics in Subscription types
2021-03-09 22:21:56 +09:00
Sunli
1e6ae23cd8
Add test for Federation entity lookup with DataLoader.
2021-03-06 08:21:44 +08:00
Sunli
69341df41e
Moved Variables
from async_graphql::context::Variables
to
...
`async_graphql::Variables`.
2021-02-28 09:37:42 +08:00
Sunli
baa837f2ca
Allow the deprecation
attribute to have no reason.
2021-02-27 11:59:58 +08:00
Sunli
1dd3c7589f
Clippy clean
2021-02-26 20:05:09 +08:00
Sunli
14a88cfa19
Add support for Federation nested keys.
2021-02-21 23:06:26 +08:00
Sunli
550ecd9660
Fixed GraphQL over WebSocket Protocol does not support ConnectionError events. #406
2021-02-06 11:02:41 +08:00
Sunli
43a8ad6859
Supports async websocket initializer. #393
2021-01-16 16:37:20 +08:00
Sunli
a0ded06da8
Fix a bug that cause generic InputObject
and SimpleObject
is incorrect name. #387
2021-01-14 19:20:28 +08:00
Sunli
7bda6333da
Add support for generic SimpleObject
. #387
2021-01-14 13:16:30 +08:00
Sunli
95e372e0d3
Add Send + Sync
constraints for InputType
, OutputType
and SubscriptionType
.
2021-01-14 12:41:59 +08:00
Sunli
ac620c1eea
Add support for generic InputObject
. #387
2021-01-14 11:27:15 +08:00
Sunli
4d6fd5b539
Clippy clean
2021-01-11 09:01:28 +08:00
Sunli
20e5732525
Implements InputType
for Box<T>
and Arc<T>
. #382
2021-01-10 13:48:18 +08:00
Sunli
c8f5e3de36
Fix #[Object] macro panic with default u32. #361
2020-12-28 18:39:17 +08:00
Aaron Hill
cea22da228
Strip r#
prefix when constructing getter ident
...
When calling `to_string()` on an identifier, the returned string will
have an `r#` prefix if the original identifer was a raw identifier. This
prefix needs to be removed if the identifier is interpolated into
another identifier (e.g. `__some_prefix__r#other_ident`) in order for
the new identifier to be valid.
This issue was previously masked due to the fact that the relevant test
uses `r#i32`. It's possible to use `i32` as a normal (non-raw) ident -
due to a bug in rustc, this means that the user-supplied `r#` prefix
will be lost when calling `to_string()`. This bug will eventually be
fixed, causing `to_string()` to start returning `r#i32` instead of
`i32`.
This commit strips the `r#` prefix (if present) from an identifier
before using it to construct a new identifier. The relevant test is
updated to use `r#match`, which actually requires the `r#` prefix to be
a valid identifier. This causes the test to fail without this patch on
current versions of Rust.
2020-12-20 19:08:22 -05:00
Sunli
ec82e64a39
Improve depth and complex.
2020-12-18 18:56:28 +08:00
Sunli
8979620181
Remove async-channel
and async-mutex
from dependencies.
2020-12-17 10:05:32 +08:00
Sunli
f59c287ba0
Add the skip
attribute to the InputObject fields.
2020-12-15 20:29:59 +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