Commit Graph

28 Commits

Author SHA1 Message Date
Sunli
3390682a73 Rustfmt 2022-04-08 09:34:37 +08:00
Calin Gavriliuc
869505bf24 Clippy check fixes 2022-04-07 17:55:32 -07:00
Sunli
61d1486cd8 Clippy 2021-12-30 10:16:49 +08:00
Sunli
eb9cda4c80 Remove skipped fields from the document before executing the query. 2021-11-18 19:37:10 +08:00
Jeff Registre
30009005d1 Removed import for new prelude members: TryFrom, TryInto, FromIterator 2021-10-22 19:34:49 -04:00
Oliver Cooper
af3eab1b57 Document selection_fields 2021-09-28 16:50:27 +13:00
Oliver Cooper
f5f3f25ed7 Get selection fields from Lookahead 2021-09-27 11:56:27 +13:00
Oliver Cooper
89015c17b8 Ignore items flagged @skip in SelectionField and Lookahead 2021-08-20 10:49:20 +12:00
Oliver Cooper
5b6f06ced1 Replaced panicking From with TryFrom 2021-07-15 16:03:33 +12:00
Oliver Cooper
39dc8399ec Added From<&[SelectionField<'a>]> for Lookahead<'a> 2021-07-15 15:51:44 +12:00
Oliver Cooper
008d262ca2 Changed Lookahead to support multiple fields 2021-07-15 13:16:55 +12:00
Sunli
199f599cd5 Implement From<SelectionField> for Lookahead. #557 2021-07-01 10:36:25 +08:00
Sunli
4f47703118 Switch the async runtime used for testing to Tokio. 2021-03-12 12:47:24 +08:00
Sunli
83b659bafb Add Context::field function. #346 2020-11-30 19:41:35 +08:00
Koxiaet
93c886af07 Make imports consistent 2020-10-15 07:38:10 +01:00
Sunli
e056edbaa0 Add parse_value and from_value funcntions. 2020-10-11 20:24:31 +08: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
e645e9d999 Remove the GQL prefix of all macros. #208 2020-09-18 09:10:24 +08:00
Koxiaet
06a52dc936 Improve lookahead 2020-09-13 08:02:14 +01:00
Sunli
24b80d52d3 Remove all attribute macros that can be replaced by derive. 2020-09-13 11:41:15 +08:00
Sunli
91c75ced2a Make all tests passed (async-graphql). 2020-09-10 19:35:48 +08: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
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
eb7a72aac6 Remove ref attribute for SimpleObject fields, and add owned attribute. 2020-06-23 14:42:57 +08:00
sunli
c16d239b65 Remove some unsafe code 2020-05-16 21:14:26 +08:00
Sunli
6de85377f7 Rename async_graphql_parser::ast to async_graphql_parser::query 2020-05-15 10:38:48 +08:00
sunli
534837e1b9 Add Context::look_ahead 2020-05-14 22:13:28 +08:00