Commit Graph

27 Commits

Author SHA1 Message Date
Koxiaet
0880be3e0b 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
Koxiaet
f82322045e Document features 2020-09-15 19:32:13 +01:00
Koxiaet
a86c3a86b8 Remove and feature-gate dependencies 2020-09-14 19:38:41 +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
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
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
Koxiaet
945cd72869 Remove dependency on serde_derive, satisfy Clippy, improve docs 2020-08-31 19:18:02 +01: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
Sunli
b8a887457d Use log crate instead of xlog because xlog still needs to be perfected. #217 2020-07-24 16:55:46 +08:00
Sunli
c7c4de94ed Replace log crate with xlog. 2020-07-15 18:05:24 +08:00
Sunli
09a6eb4944 Extension::Logger now provides more comprehensive error information. 2020-06-13 22:14:47 +08:00
sunli
f9f9cdfb20 Logger extensions filter out introspection. #87 2020-05-27 20:47:22 +08:00
Sunli
d719461ae5 Add logger extension 2020-05-22 11:58:49 +08:00
sunli
e949cb441c Add defer tests 2020-05-20 13:42:55 +08:00
sunli
495df5a9ab Add tracing extension 2020-04-28 15:01:19 +08:00
sunli
c1b493a56b Extension::result now returns an Option 2020-04-24 10:37:18 +08:00
sunli
b880a937ce Add GQLHttpRequest and IntoQueryBuilder trait 2020-04-11 17:36:05 +08:00
sunli
10105b8a09 Reimplement the error type and remove the dependency on the anyhow::Error 2020-04-02 10:21:04 +08:00
sunli
3938c2f80c v1.6.8
Add context data support
2020-03-31 11:19:18 +08:00
sunli
25210e0e15 v1.6.2 2020-03-26 18:30:29 +08:00
sunli
50347bc415 v1.6.0 2020-03-26 11:34:28 +08:00