Commit Graph

361 Commits

Author SHA1 Message Date
Koxiaet
45a08e9b00 Reorder dependencies and remove dependency on mime 2020-09-09 17:03:33 +01:00
Koxiaet
2f80e484d1 Fix Tide tests 2020-09-08 11:07:32 +01:00
Koxiaet
ea7e4eaf2a Fix tests 2020-09-08 10:19:25 +01:00
Koxiaet
324e65f3dd Merge branch 'master' into master 2020-09-08 09:48:01 +01:00
Koxiaet
f9ce6118b2 Merge branch 'master' of github.com-koxiaet:Koxiaet/async-graphql into master 2020-09-08 09:32:37 +01: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
Sunli
175a48875e Remove historical code that is no longer used. 2020-09-07 18:53:03 +08:00
Sunli
e2c9de9183 Clippy cleanup 2020-09-06 18:59:38 +08:00
Sunli
ca84859f46 Make all tests pass. 2020-09-06 18:53:24 +08: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
dece273372 Implement Into<ID> for all integer types. 2020-09-06 12:33:57 +08:00
Sunli
44413f32c9 Update docs for InputObject macro. 2020-09-03 20:20:33 +08:00
Sunli
613549d9c6 Remove unnecessary memory allocation. 2020-09-02 14:27:04 +08:00
Sunli
e79fa24641 Improve subscriptions performance. 2020-09-02 10:47:18 +08:00
Sunli
c3a4bf6e11 Merge branch 'master' of https://github.com/async-graphql/async-graphql 2020-09-01 19:34:05 +08:00
Sunli
ff43bd8a21 Improve subscriptions performance for warp. 2020-09-01 19:33:35 +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
40d19f2f58 Add DateTime<Local> scalar.
Fixed compile problem with `v1.48-nightly`.
2020-08-31 16:12:12 +08:00
Sunli
0c4f8e5c16 Clippy clean 2020-08-31 15:40:44 +08:00
Sunli
78d3885a67 Cargo fmt --all 2020-08-31 15:35:53 +08:00
D1plo1d
7f7397650a Added async_graphql::graphql tracing namespace 2020-08-30 21:11:43 -04:00
D1plo1d
5a6c77ba9d Refactored tracing extension to allow better span and event filtering and improve signal to noise 2020-08-30 21:01:53 -04:00
D1plo1d
c675b929d3 Added Default to tracing extension 2020-08-30 16:32:14 -04:00
Renat Sadykov
7567a47498 Add the DateTime<FixedOffset> scalar 2020-08-29 23:18:57 +03: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
8431c3a3d8 Rename SubscriptionTransport to ConnectionTransport. #240 2020-08-15 08:47:45 +08:00
Sunli
8c272127ea Add scalar type for NaiveDateTime. #237 2020-08-14 15:28:42 +08:00
Sunli
4e8bd65b34 Fix send data with 'complete' WebSocket message. #238 2020-08-14 15:21:10 +08:00
Sunli
6bf9718225 Update docs 2020-08-10 14:57:45 +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
Midas Lambrichts
db904b623b 3% speedup in chat run by allocating vector up front 2020-08-08 13:36:14 +02: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
503339f504 InputValueValidator::is_valid function now returns the Result type. #221 2020-07-30 09:43:51 +08:00
Sunli
b7ad1ded91 Export serde_json::Number as async_graphql::Number. 2020-07-30 09:30:57 +08:00
Sunli
2dc61013be Replace Value::Int and Value::Float with Value::Number. 2020-07-29 09:42:52 +08:00
Sunli
a2aa731fe4 Use log crate instead of xlog because xlog still needs to be perfected. #217 2020-07-24 16:55:46 +08:00
Sunli
a18abab7b7 Fix Federation schema throws error while using multiple Option inputs #211 2020-07-17 10:14:40 +08:00
Sunli
4d3851e1b5 Replace log crate with xlog. 2020-07-15 18:05:24 +08:00
Sunli
909ae5e64d Fix input validator is ignored when using variable #207 2020-07-11 10:05:30 +08:00
Sunli
ea9e733a6e Merge pull request #206 from D1plo1d/patch-1
Add Serialize and Deserialize to ID
2020-07-08 15:10:01 +08:00
Sunli
2dde8b4aa6 Add OutputJson type #203 2020-07-08 14:44:57 +08:00