Commit Graph

40 Commits

Author SHA1 Message Date
Sunli
548fb1ea4e Clippy clean 2022-09-20 09:33:16 +08:00
Sunli
0eefc3932b Fixes #1004 2022-08-05 14:50:29 +08:00
Sunli
69b09f2636 Fix impossible to specify both name and input_name. #987 2022-07-18 16:34:57 +08:00
Sunli
88ba75ec70 Rework connection types 2022-04-19 19:18:06 +08:00
Douman
ca1f9045cc Introduce process_with for input object 2022-04-05 11:31:11 +09:00
Sunli
a62eb6f699 Panics when the same Rust type has the same name. #880 2022-03-30 20:54:49 +08:00
Sunli
2552c240a5 Add support for using both ComplexObject and InputObject. 2022-02-06 11:39:50 +08:00
Sunli
334b6efe99 Add skip_input attribute to InputObject macro, skip_output attribute to SimpleObject macro. #797 2022-01-26 17:54:24 +08:00
Sunli
0e9e087691 Move the methods of the Type trait to InputType and OutputType. 2021-11-12 07:23:05 +08:00
Sunli
c80687af80 Clippy clean 2021-07-31 23:54:16 +08:00
Sunli
4f47703118 Switch the async runtime used for testing to Tokio. 2021-03-12 12:47:24 +08:00
Sunli
b054fc0704 Add Send + Sync constraints for InputType, OutputType and SubscriptionType. 2021-01-14 12:41:59 +08:00
Sunli
74657c6242 Add support for generic InputObject. #387 2021-01-14 11:27:15 +08:00
Sunli
099415fd42 Implements InputType for Box<T> and Arc<T>. #382 2021-01-10 13:48:18 +08:00
Sunli
fe24247c9d Add the skip attribute to the InputObject fields. 2020-12-15 20:29:59 +08:00
Sunli
c777150dcd Use value! instead of serde_json::json!. 2020-10-12 10:17:05 +08:00
Sunli
e60864a18d Rework async-graphql-derive. #288 2020-09-29 16:06:10 +08:00
Sunli
e645e9d999 Remove the GQL prefix of all macros. #208 2020-09-18 09:10:24 +08:00
Sunli
24b80d52d3 Remove all attribute macros that can be replaced by derive. 2020-09-13 11:41:15 +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
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
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
a9d3ac9cf8 Implement a type-safe default value definition for InputValue. #111 2020-05-26 20:43:53 +08:00
sunli
4659da9c30 fix #33 2020-04-27 12:57:52 +08:00
sunli
09d5e5f489 v1.9.0 2020-04-14 09:53:17 +08:00
sunli
03e1604f0b Fixed #attribute not working on the InputObject fields. 2020-04-08 12:02:48 +08:00
sunli
506e82895f Add Schema::execute 2020-04-02 12:53:53 +08:00
sunli
b373e1397d remove PreparedQuery 2020-04-01 16:53:49 +08:00
sunli
bc0d6603c1 v1.6.0 2020-03-26 11:34:28 +08:00
sunli
b0369860dd v1.5.1 2020-03-25 11:39:28 +08:00
sunli
0769513c8b v1.5.0
Improve performance
2020-03-24 18:54:22 +08:00
sunli
724cb21258 add GraphQL Cursor Connections 2020-03-19 17:20:12 +08:00
sunli
60b0282a89 Support subscription 2020-03-17 17:26:59 +08:00
sunli
ce3d4cbc33 fix some bug 2020-03-09 09:33:36 +08:00
sunli
5ab4f73c76 v0.9.4 2020-03-07 20:54:03 +08:00