Sunli
bff5e97def
Add feature to flatten nested GraphQL unions. #286
2020-09-28 11:13:46 +08:00
Sunli
a725594cd1
Add remote
attribute for Enum macro. #276
2020-09-27 18:19:11 +08:00
Sunli
7d3eb9b62c
Make Object and Subscription macros support #cfg(...)
attribute. #281
2020-09-27 10:20:20 +08:00
Sunli
5c293ffdc2
Improve the error message of Tracing extension.
2020-09-26 12:35:28 +08:00
Sunli
5cb507ed90
Add test code for generic object. #274
2020-09-23 14:39:18 +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
e645e9d999
Remove the GQL prefix of all macros. #208
2020-09-18 09:10:24 +08: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
76257403e2
Add support for batch queries.
2020-09-17 19:54:12 +08:00
Sunli
70556af838
Add test for ErrorExtensions.
2020-09-17 08:47:41 +08: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
86a6a34aac
http::websocket::create function now returns the WebSocketStream type.
2020-09-15 11:19:00 +08:00
Sunli
42817a3aa6
Implement Type for more stdlib collection types #189
...
Implement InputValueType/OutputValueType for HashSet<T>/BTreeSet<T>/VecDeque<T>/LinkedList<T>
Implement ScalarType for char/NonZero*/HashMap<String,T>/BTreeMap<String, T>
2020-09-14 20:06:44 +08:00
Sunli
5bb705bdf3
2.0.0-alpha.5
2020-09-14 09:46:22 +08:00
Koxiaet
6e628031bf
Rework subscriptions
...
The main change in this commit is changing the return type of
SubscriptionType::create_stream from
Future<Result<Stream<Result<Response>>>> to just Stream<Result<Json>>. I
also allowed the returned stream to borrow from self and context.
2020-09-13 18:52:36 +01:00
Koxiaet
367076cd66
Remove SimpleBroker
2020-09-13 10:47:28 +01:00
Koxiaet
9796364348
Move websockets to http module and fix doc tests
2020-09-13 07:40:34 +01:00
Sunli
24b80d52d3
Remove all attribute macros that can be replaced by derive.
2020-09-13 11:41:15 +08:00
Koxiaet
dcc7d1be14
Replace http::GQLRequest with Request
2020-09-12 17:07:46 +01:00
Koxiaet
35e74a4e17
Create resolver_utils
2020-09-12 10:29:52 +01:00
Sunli
a4fdf6a38a
Re-enable the test on websocket.
2020-09-11 16:41:56 +08:00
Sunli
c129079f69
Fix tests
2020-09-11 16:05:21 +08:00
Sunli
049b652dd6
Add transports::websocket module.
2020-09-11 15:54:56 +08:00
Sunli
35f17a389c
Remove unnecessary Result on Schema::execute_stream function.
2020-09-11 10:47:55 +08:00
Sunli
91c75ced2a
Make all tests passed (async-graphql).
2020-09-10 19:35:48 +08:00
Sunli
f3c0d86f12
Continue to refactor.
2020-09-10 16:39:43 +08:00
Koxiaet
04c898ef01
Rustfmt
2020-09-08 09:30:29 +01:00
Koxiaet
47259548c4
Support service parsing in async-graphql-parser
...
- Instead of adding a separate module `schema` like there was before,
since service parsing and executable parsing have a fair amount of
overlap I put them as two submodules `executable` and `service` in both
`parse` and `types`. Also, the grammar is unified under one `.pest`
file.
- Added const equivalents to `Value`, `Directive` etc
- Change the reexport `async_graphql::Value` from
`async_graphql_parser::types::Value` to
`async_graphql_parser::types::ConstValue` since in 99% of cases in this library
a const value is wanted instead of a value.
- Added consistent usage of executable/service instead of the ambiguous
query/schema.
- Some of the tests actually had invalid GraphQL so the new more correct
grammar made them fail, that was fixed.
- Added a `Name` newtype to refer to GraphQL names
(`[A-Za-z_][A-Za-z_0-9]*`) since they are used so frequently.
2020-09-08 09:21:27 +01:00
Koxiaet
1c26ff124f
Merge branch 'master' into master
2020-09-06 07:20:18 +01:00
Koxiaet
c055736101
Rustfmt
2020-09-06 07:16:36 +01:00
Koxiaet
81d85c2535
Rewrite async-graphql-parser
2020-09-06 06:38:31 +01:00
Sunli
b4997e4b27
Add test for multiple flatten attribute of InputObject.
2020-09-04 14:14:48 +08:00
Sunli
78a1a33cda
Add flatten type field support for input objects. #255
2020-09-03 20:00:33 +08:00
Sunli
769bffcbf2
Fix the test code and add docs.
2020-09-01 09:10:12 +08:00
Koxiaet
02f7a5fbbc
Remove dependency on serde_derive, satisfy Clippy, improve docs
2020-08-31 19:18:02 +01:00
Sunli
6a38057a22
Implements Default for Schema.
2020-08-28 14:19:35 +08:00
Sunli
c35eecd90d
Merge subscriptions #243
2020-08-27 15:35:48 +08:00
Sunli
a0148675c8
Add support for mut field args.
2020-08-17 21:48:53 +08:00
Sunli
4e8bd65b34
Fix send data with 'complete' WebSocket message. #238
2020-08-14 15:21:10 +08:00
Sunli
caedc4d783
Update test for MergedObject.
2020-08-11 09:37:33 +08:00
Sunli
2a62c56104
Add derive macro GQLMergeObject. #231
2020-08-10 14:11:46 +08:00
Sunli
b0403f4e99
Add Default impl for MergedObject. #231
2020-08-10 10:47:30 +08:00
Sunli
4b6bb38e83
Add MergedObject type. #231
2020-08-09 15:03:10 +08:00
Sunli
47174966fb
Add directive @ifdef
2020-08-06 14:52:54 +08:00
Sunli
aa3293b65c
Add support for query execution over websocket.
2020-07-31 11:30:57 +08:00
Sunli
2cf350a5c8
Removes code about streaming requests.
2020-07-31 10:10:03 +08:00
Sunli
2dc61013be
Replace Value::Int and Value::Float with Value::Number.
2020-07-29 09:42:52 +08:00
Sunli
909ae5e64d
Fix input validator is ignored when using variable #207
2020-07-11 10:05:30 +08:00
Sunli
2dde8b4aa6
Add OutputJson type #203
2020-07-08 14:44:57 +08:00