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
Sunli
7796b8c248
Add tests for graphql-ws
.
2020-12-04 16:44:48 +08:00
Sunli
30dffdd47f
Merge branch 'master' into pr/350
2020-12-04 12:17:23 +08:00
Sunli
c9790087c5
Add websocket subprotocol for actix-web.
2020-12-04 12:13:52 +08:00
Sunli
1e21e29fd9
Fix the problem that the fields of the list are not merged correctly.#345
2020-11-27 10:26:23 +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
cc793e080a
Merge branch 'master' of github.com:async-graphql/async-graphql
2020-11-04 10:26:04 +08:00
Sunli
599b5f1c47
Fix the problem that Description
derived macro do not support generic objects.
2020-11-04 10:25:30 +08:00
Sunli
7c62b10ebc
Fix #333
2020-11-03 18:16:55 +08:00
Sunli
89ab0c799f
Fix the problem of scalar
macro.
2020-11-03 13:50:22 +08:00
Sunli
d4e26192ce
Fix interface downcasting. #330
2020-10-31 08:58:54 +08:00
Sunli
a43432d530
Add test for SchemaBuilder::override_description
. #327
2020-10-27 20:47:24 +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
fc35787885
Add interface to implement another interface. #322
2020-10-24 09:08:18 +08:00
Sunli
8edd59ffdb
Fix the problem that the Registry::create_dummy_type
function may overwrite the keys of the registered type. #316
2020-10-20 19:55:10 +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
807bad2a72
Fix macro hygiene
2020-10-16 20:21:46 +01:00
Koxiaet
68381cfc65
Make macros hygienic
2020-10-16 11:37:59 +01:00
Koxiaet
db312a372d
Replace futures with futures_util
2020-10-16 07:49:22 +01:00
Sunli
b054f1bf9f
Fix can no longer derive Union for union types with lifetimes. #311
2020-10-15 08:53:17 +08:00
Sunli
bc5cf2f2a2
Configurable case conversion.
2020-10-14 19:16:10 +08:00
Sunli
53ef84c5e3
Fix a bug in the validator.
2020-10-14 10:54:46 +08:00
Sunli
b1ecc6b8a9
2.0.1
2020-10-14 10:25:41 +08:00
Sunli
184f8b169d
Update docs
2020-10-13 10:19:30 +08:00
Sunli
b0ceb58163
Use value!
instead of serde_json::json!
.
2020-10-12 10:17:05 +08:00
Sunli
2ca10e0ded
Add parse_value
and from_value
funcntions.
2020-10-11 20:24:31 +08:00
Sunli
10cd868f4c
Some improvements.
2020-10-10 16:28:07 +08:00
AurelienFT
e7b4ad8f2f
Rework guard ( #296 )
...
Rework guard #293
2020-10-06 17:16:51 +08:00