Commit Graph

378 Commits

Author SHA1 Message Date
Sunli
a0b55a9e43 async-graphql-tide 2.0 2020-09-11 22:17:17 +08:00
Sunli
a93b91ae2d Re-enable the test on websocket. 2020-09-11 16:41:56 +08:00
Sunli
3e01ef0be7 Fix tests 2020-09-11 16:05:21 +08:00
Sunli
faac753096 Add transports::websocket module. 2020-09-11 15:54:56 +08:00
Sunli
9cc293c8be Clippy clean 2020-09-11 10:51:20 +08:00
Sunli
553e6ffd53 Remove unnecessary Result on Schema::execute_stream function. 2020-09-11 10:47:55 +08:00
Sunli
c88747dfe4 Make all tests passed (async-graphql). 2020-09-10 19:35:48 +08:00
Sunli
d5cbbfb05f Merge changes. 2020-09-10 16:54:38 +08:00
Sunli
2f5a1ccf20 Merge branch '2.0' of github.com:async-graphql/async-graphql into 2.0 2020-09-10 16:43:24 +08:00
Sunli
7a90069cad Continue to refactor. 2020-09-10 16:39:43 +08:00
Koxiaet
c00c368c35 Move HTTP functions to HTTP module 2020-09-10 08:04:24 +01:00
Sunli
9bc837da9e Initial attempt. 2020-09-10 12:49:08 +08:00
Sunli
cacb5aa9d8 Rustfmt 2020-09-10 09:09:55 +08:00
Koxiaet
096660a676 Remove anyhow, byteorder and base64 dependencies 2020-09-09 17:34:23 +01:00
Koxiaet
a526b751d5 Merge branch 'master' of github.com-koxiaet:async-graphql/async-graphql into master 2020-09-09 17:06:36 +01:00
Koxiaet
7ad1b8cd58 Reorder dependencies and remove dependency on mime 2020-09-09 17:03:33 +01:00
Sunli
31f4dcb2f2 Merge branch 'master' of https://github.com/async-graphql/async-graphql 2020-09-09 18:42:58 +08:00
Sunli
0d3a0f6949 Add context to ResolveInfo. #260 2020-09-09 18:42:10 +08:00
Koxiaet
b3093e92d4 Fix Tide tests 2020-09-08 11:07:32 +01:00
Koxiaet
122f8ef230 Fix tests 2020-09-08 10:19:25 +01:00
Koxiaet
7cd823ba04
Merge branch 'master' into master 2020-09-08 09:48:01 +01:00
Koxiaet
a42cc58f00 Merge branch 'master' of github.com-koxiaet:Koxiaet/async-graphql into master 2020-09-08 09:32:37 +01:00
Koxiaet
c42aa55625 Rustfmt 2020-09-08 09:30:29 +01:00
Koxiaet
ed5acdcf18 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
Sunli
5f14325ef5 Remove historical code that is no longer used. 2020-09-07 18:53:03 +08:00
Sunli
9ce0554ed3 Clippy cleanup 2020-09-06 18:59:38 +08:00
Sunli
22fb1681d5 Make all tests pass. 2020-09-06 18:53:24 +08:00
Koxiaet
9ad4e8c1a8
Merge branch 'master' into master 2020-09-06 07:20:18 +01:00
Koxiaet
3bf5f3a16c Rustfmt 2020-09-06 07:16:36 +01:00
Koxiaet
e3e58d261d Rewrite async-graphql-parser 2020-09-06 06:38:31 +01:00
Sunli
dc02466cc7 Implement Into<ID> for all integer types. 2020-09-06 12:33:57 +08:00
Sunli
d393ed260d Update docs for InputObject macro. 2020-09-03 20:20:33 +08:00
Sunli
2aca257136 Remove unnecessary memory allocation. 2020-09-02 14:27:04 +08:00
Sunli
d2bb44798a Improve subscriptions performance. 2020-09-02 10:47:18 +08:00
Sunli
2165ddbc65 Merge branch 'master' of https://github.com/async-graphql/async-graphql 2020-09-01 19:34:05 +08:00
Sunli
59ce5fe9f2 Improve subscriptions performance for warp. 2020-09-01 19:33:35 +08:00
Sunli
d04b5b675f Fix the test code and add docs. 2020-09-01 09:10:12 +08:00
Koxiaet
945cd72869 Remove dependency on serde_derive, satisfy Clippy, improve docs 2020-08-31 19:18:02 +01:00
Sunli
b3f6e724bf Add DateTime<Local> scalar.
Fixed compile problem with `v1.48-nightly`.
2020-08-31 16:12:12 +08:00
Sunli
56550bac23 Clippy clean 2020-08-31 15:40:44 +08:00
Sunli
ea379141a6 Cargo fmt --all 2020-08-31 15:35:53 +08:00
D1plo1d
895b075c77 Added async_graphql::graphql tracing namespace 2020-08-30 21:11:43 -04:00
D1plo1d
895dbfae7c Refactored tracing extension to allow better span and event filtering and improve signal to noise 2020-08-30 21:01:53 -04:00
D1plo1d
05b2473b52 Added Default to tracing extension 2020-08-30 16:32:14 -04:00
Renat Sadykov
83261cef2a
Add the DateTime<FixedOffset> scalar 2020-08-29 23:18:57 +03:00
Sunli
80b2ff00c5 Implements Default for Schema. 2020-08-28 14:19:35 +08:00
Sunli
7fef4e3dca Merge subscriptions #243 2020-08-27 15:35:48 +08:00
Sunli
2e5c256de9 Rename SubscriptionTransport to ConnectionTransport. #240 2020-08-15 08:47:45 +08:00
Sunli
e596a27e05 Add scalar type for NaiveDateTime. #237 2020-08-14 15:28:42 +08:00
Sunli
fe336dd4d0 Fix send data with 'complete' WebSocket message. #238 2020-08-14 15:21:10 +08:00