Commit Graph

125 Commits

Author SHA1 Message Date
Sunli
74dc863a8f Rustfmt and Clippy 2020-06-05 21:42:24 +08:00
Sunli
5beef0e536 add feature attribute to field attribute inside SimpleObject 2020-06-05 21:17:15 +08:00
Coenen Benjamin
614fb89703
add feature attribute to field attribute inside Object (#153)
* add feature support in field attribute
2020-06-05 21:06:53 +08:00
Sunli
cfd652576f Add PostGuard. #129 2020-06-03 14:50:06 +08:00
Sunli
38c0f98c20 Little performance optimization. 2020-06-02 12:02:14 +08:00
Sunli
9700d2bef9 Fix validators bug 2020-05-31 09:55:41 +08:00
Sunli
74ae041426 Add #![forbid(unsafe_code)] to all sub crates 2020-05-29 17:33:19 +08:00
Sunli
18dacbdf17
Add MaybeUndefined type (#123)
* Add MaybeUndefined type
2020-05-28 15:00:55 +08:00
Sunli
30a32cf04e
Merge pull request #118 from mwilliammyers/fix/missing-value
Add  #crate_name to Value in InputValueType derive
2020-05-28 08:09:58 +08:00
Sunli
ada2597130
New data source (#105)
* New data source
2020-05-28 08:02:00 +08:00
William Myers
de2b5b5880
Add #crate_name to Value in InputValueType derive 2020-05-27 13:16:53 -06:00
Sunli
ae8234200a Add the method parameter to the interface field. #112 2020-05-27 10:25:23 +08:00
Sunli
42b6b0380f Add some tests for default value 2020-05-27 09:27:59 +08:00
Sunli
a92a619345 Implement a type-safe default value definition for InputValue. #111 2020-05-26 20:43:53 +08:00
sunli
e949cb441c Add defer tests 2020-05-20 13:42:55 +08:00
Sunli
d300e27fa2 Add Deferred type and @defer directive. #51 2020-05-19 20:53:29 +08:00
Sunli
89bfaac0eb The scalar name and description attributes are placed on the process macro attributes. #97 2020-05-19 13:27:01 +08:00
Sunli
76b582065d Support multiple lines of rustdoc as a type description. 2020-05-18 10:09:09 +08:00
sunli
42a4639dc3 Preserve field order for introspection. #89 2020-05-16 10:05:48 +08:00
Sunli
14312ba472 Rename async_graphql_parser::ast to async_graphql_parser::query 2020-05-15 10:38:48 +08:00
Sunli
9184c999ae Modify some type names (internal types) 2020-05-15 10:08:37 +08:00
sunli
fbfc1ff8b2 Fix the problem described in #80 2020-05-13 11:37:07 +08:00
sunli
184a2befbe Update subscription.rs 2020-05-13 09:03:19 +08:00
Samuel Hurel
32dfd5f88c Fix tests 2020-05-12 12:40:57 +02:00
sunli
1a1d5b4075 pre-release v1.12.1 2020-05-12 17:20:23 +08:00
Sunli
30f8b9225c
Merge pull request #80 from IcanDivideBy0/derive_renamed_crate
Allow for crate renaming in Cargo.toml
2020-05-12 16:46:36 +08:00
Samuel Hurel
9d638ac004 Allow for crate renaming in Cargo.toml 2020-05-12 10:38:59 +02:00
sunli
01b2ce8e18 Improve GraphQL query parser performance. #76 2020-05-12 16:27:06 +08:00
sunli
83579077d9 Support Upload Stream #15
I think the previous implementation is not elegant enough, the `QueryBuilder::set_files_holder` function looks disgusting, so I refactored it.
By the way, the performance of parsing InputValue has been optimized, and unnecessary clones have been removed.
2020-05-11 21:47:24 +08:00
Sunli
a1c8dedd56
Merge pull request #75 from phated/interface-enums
Change interfaces & unions to require enums
2020-05-11 13:44:19 +08:00
Sunli
132811cb91 DataSource and Scalar macros no longer hide errors. #73
I still haven't figured out why this problem was caused, but I solved it in a way that seemed silly together.
2020-05-11 13:31:13 +08:00
Blaine Bublitz
548447cdec Change Unions to enums instead of structs 2020-05-10 21:27:30 -07:00
Blaine Bublitz
14e3b4fe69 Change interfaces to require enums 2020-05-10 20:03:13 -07:00
sunli
6d7d64866b The error reason can be returned when the input value is parsed incorrectly. #70 2020-05-10 18:27:46 +08:00
sunli
dc963250e7 Update args.rs 2020-05-10 13:23:34 +08:00
sunli
85156b69a8 Use rustdoc comments as graphql desc. #62 2020-05-10 12:41:05 +08:00
sunli
52170b6da3 Remove async-graphql-derive dependency on graphql-parser. 2020-05-10 11:12:07 +08:00
sunli
f7d308be8a Improve parser performance. 2020-05-10 10:59:51 +08:00
sunli
36967ffa4f Add ability to forward field arguments to guard #59 2020-05-09 18:34:57 +08:00
sunli
311859e12a Merge branch 'parser'
Implement a new GraphQL query parser and remove the dependency on graphql-parser.
2020-05-09 17:55:04 +08:00
sunli
d7e3afc822 Change the first parameter of OutputValueType::resolve to be &self 2020-05-05 21:06:48 +08:00
sunli
e3cab73d53 Modify the location of the Guard call. 2020-05-05 13:02:24 +08:00
sunli
be2898ea01 v1.10.6 2020-05-04 07:59:30 +08:00
sunli
f786ce3275 Stops when an error occurs to the subscription stream. 2020-05-03 21:21:54 +08:00
sunli
95c6c0bbf3 Report subscription stream errors to the client. 2020-05-03 16:02:46 +08:00
sunli
fded6fabcc v1.10.1 2020-05-02 11:03:04 +08:00
sunli
98864c6879 Add field guard 2020-05-02 07:57:34 +08:00
sunli
dec3337ac8 Object, SimpleObject, Subscription to add missing the where clause 2020-04-28 18:05:06 +08:00
sunli
495df5a9ab Add tracing extension 2020-04-28 15:01:19 +08:00
sunli
fee4393b3b v1.9.23 2020-04-27 18:54:22 +08:00