Commit Graph

1017 Commits

Author SHA1 Message Date
Sunli
312b8f13d8 Add Schema::sdl method. #191 2020-09-23 14:14:22 +08:00
Koxiaet
6947d95030 Merge branch 'master' of github.com-koxiaet:async-graphql/async-graphql into master 2020-09-22 20:03:33 +01:00
Koxiaet
49462cf05f Move some validations to parser
This commit moves the single anonymous and duplicated operation name
validation rules into the parser, allowing for a nicer format to be
exposed by it. It also adds better error messages to the parser.
2020-09-22 19:59:48 +01:00
Sunli
47329b9458 Add Request::extension method. #271 2020-09-21 15:53:07 +08:00
Sunli
7eb2143b2c Implement Serialize/Deserialize for MaybeUndefine<T>. 2020-09-21 15:22:45 +08:00
Sunli
e12ae8b236 Add BatchRequest support for actixweb and warp integrations. 2020-09-21 14:57:33 +08:00
Sunli
92c5db674a Merge pull request #272 from mwilliammyers/feat/maybe-undefined
Remove Deserialize impl from MaybeUndefined
2020-09-21 07:56:47 +08:00
William Myers
b1763de1ea Remove Deserialize impl from MaybeUndefined
Change Serialize implementation to use the `untagged` attribute.
This handles the common case of directly serializing `MaybeUndefined`,
but deserializing into an `Option<T>`. We could add a more sophisticated
custom deserialize implementation later.
2020-09-20 13:22:51 -07:00
Sunli
22420ee7ec Make ObjectType is public. 2020-09-20 15:47:17 +08:00
Sunli
451f425813 Remove all GQL prefix. #208 2020-09-20 13:44:20 +08:00
Sunli
679385b5de Fix docs 2020-09-20 13:34:49 +08:00
Sunli
930a23a82c 2.0.0-alpha.14 2020-09-20 13:31:46 +08:00
Sunli
1f009c6e57 Merge branch 'master' of https://github.com/async-graphql/async-graphql 2020-09-20 13:28:25 +08:00
Sunli
20d240df47 Fix enum strings in query variables are not converted to proper enums. #270 2020-09-20 13:28:18 +08:00
Sunli
14e75ef1af Merge pull request #269 from mwilliammyers/feat/maybe-undefined
Add more trait implementations to MaybeUndefined
2020-09-20 09:48:58 +08:00
William Myers
c117cc0bf5 Add more trait implementations to MaybeUndefined
Closes #267
2020-09-19 14:10:54 -07:00
Koxiaet
6095383019 Warp: Replace BoxedFilter with impl Filter 2020-09-19 18:10:46 +01:00
Koxiaet
d2489eca0b Reexport async-graphql-parser 2020-09-19 06:14:59 +01:00
Sunli
b3ce8d13ef Update authors 2020-09-18 20:36:05 +08:00
Sunli
52b8ce93a9 Fix the problem that async_graphql_warp::graphql_subscription cannot be combined with other filters. 2020-09-18 19:21:35 +08:00
Sunli
f92c907954 2.0.0-alpha.13 2020-09-18 15:17:43 +08:00
Sunli
73333035bd Fix compiling without features 2020-09-18 15:14:40 +08:00
Sunli
c1d4dbed87 2.0.0-alpha.12 2020-09-18 15:05:07 +08:00
Sunli
45dc3d6d09 Add Upload::into_async_read with blocking 2020-09-18 14:32:00 +08:00
Sunli
e645e9d999 Remove the GQL prefix of all macros. #208 2020-09-18 09:10:24 +08:00
Koxiaet
07d2204773 Remove code duplication for batch requests 2020-09-17 19:43:03 +01:00
Koxiaet
d52268523f Merge branch 'master' of github.com-koxiaet:async-graphql/async-graphql into master 2020-09-17 19:23:15 +01:00
Koxiaet
890b282dd9 Improve websockets 2020-09-17 19:22:54 +01:00
Sunli
8be719b1b0 2.0.0-alpha.11 2020-09-17 20:07:54 +08:00
Sunli
76257403e2 Add support for batch queries. 2020-09-17 19:54:12 +08:00
Sunli
a0515ed20e Update interface.rs 2020-09-17 13:43:08 +08:00
Sunli
5a340dc120 2.0.0-alpha.10 2020-09-17 13:24:53 +08:00
Sunli
36b16217d4 Fixed cannot #[Union] on enum named From #264 2020-09-17 13:20:54 +08:00
Sunli
34eaa1d686 Some improvements. 2020-09-17 11:22:09 +08:00
Sunli
5d705afeb4 Update docs 2020-09-17 09:03:36 +08:00
Sunli
70556af838 Add test for ErrorExtensions. 2020-09-17 08:47:41 +08:00
Sunli
8f163e9e32 Update book 2020-09-17 08:14:07 +08:00
Sunli
042c4518aa 2.0.0-alpha.9 2020-09-16 11:26:01 +08:00
Koxiaet
92de2e5816 Fix CI 2020-09-15 19:51:50 +01:00
Koxiaet
e2f53cc30f Document features 2020-09-15 19:32:13 +01:00
Sunli
492bba1cdd Move http::websocket::create and http::websocket::create_with_initializer function to http::WebSocketStream. 2020-09-15 20:07:59 +08:00
Sunli
9514432989 2.0.0-alpha.8 2020-09-15 19:50:14 +08:00
Sunli
32927f9836 Update book 2020-09-15 11:56:05 +08:00
Sunli
6b71ba87de Rework websocket
a
2020-09-15 11:49:07 +08:00
Sunli
86a6a34aac http::websocket::create function now returns the WebSocketStream type. 2020-09-15 11:19:00 +08:00
Sunli
4f0ef35d39 2.0.0-alpha.7 2020-09-15 09:35:42 +08:00
Sunli
1e430b9c11 Remove InputObjectType and add InputValueType/OutputValueType to docs 2020-09-15 09:31:55 +08:00
Koxiaet
c2f34b90e5 Rustfmt 2020-09-14 20:20:15 +01:00
Koxiaet
d2b1dd4cab Fix compiling without features 2020-09-14 20:16:41 +01:00
Koxiaet
c546b87de6 Improved serialize_resp 2020-09-14 19:56:12 +01:00