Commit Graph

167 Commits

Author SHA1 Message Date
Sunli
889ba7794c Fixes #1004 2022-08-05 14:50:29 +08:00
Sunli
8be451b5bd Fix impossible to specify both name and input_name. #987 2022-07-18 16:34:57 +08:00
sunli829
a0d3cf3423 Fixed OneofObject restriction on inner types being unique. #923 2022-05-14 16:43:28 +08:00
Sunli
f2bac81a2f Remove code and tests related oneof fields. #915 2022-05-07 16:16:01 +08:00
Sunli
2a0cc52178 Clippy clean 2022-04-20 14:21:23 +08:00
Sunli
93763997af Rework connection types 2022-04-19 19:18:06 +08:00
Sunli
b31346811b
Merge pull request #884 from cynecx/union_support_macro_type
Support macro type in enum variant
2022-04-07 11:55:04 +08:00
Paul Nguyen
4870a55ad8 Support macro type in enum variant 2022-04-06 17:38:36 +02:00
Douman
560f167f84 Add process_with to methods 2022-04-06 18:25:07 +09:00
Douman
6181b6bcd7 Introduce process_with for input object 2022-04-05 11:31:11 +09:00
Sunli
9b0573a8bd Panics when the same Rust type has the same name. #880 2022-03-30 20:54:49 +08:00
Sunli
15e0d14355 Fixed recursive generic input objects failing to compile. #859 2022-03-14 09:46:06 +08:00
Sunli
e80e4c9af9 Add support group attribute to Object/SimpleObject/ComplexObject/Subscription macros. #838 2022-03-14 09:28:34 +08:00
Sunli
632529ee3e Add support for oneof field on object. #766 2022-03-04 21:24:17 +08:00
Sunli
b84129c650 Add OneOfObject macro to support for oneof input object. #766 2022-02-17 19:35:55 +08:00
Sunli
60aa16d3b6
Merge pull request #813 from tamasfe/feat-flatten-context
feat: Pass context to resolvers with flatten attribute
2022-02-06 11:41:25 +08:00
Sunli
429a60c331 Add support for using both ComplexObject and InputObject. 2022-02-06 11:39:50 +08:00
tamasfe
9f098df637
feat(derive): pass context with flatten 2022-02-04 17:30:58 +01:00
Sunli
3104e0bc8d Add skip_input attribute to InputObject macro, skip_output attribute to SimpleObject macro. #797 2022-01-26 17:54:24 +08:00
Sunli
3217f7aecd Add support flatten attribute for SimpleObject, ComplexObject and Object macros. #533 2022-01-18 10:33:07 +08:00
Sunli
334307b2c2 Add Union and Interface support for trait objects. #780
Clippy clean
2022-01-11 09:35:09 +08:00
Sunli
9eb7c58c36 Fix the generic SimpleObject can't define the lifetimes. #774 2022-01-05 11:52:02 +08:00
Oscar Beaumont
831b0f8aa5
feat: added min_password_strength validator 2021-12-30 13:53:22 +08:00
Sunli
eca8cdf86c Fix field guards not working on ComplexObject. #767 2021-12-26 10:42:36 +08:00
Sunli
7ff5741a30 No longer assumes that a subscription stream that failed to resolve has ended. #744 2021-12-07 11:00:53 +08:00
Sunli
40a7192919 Fix the custom validator cannot work on Option<Vec<T>>. 2021-11-30 13:46:23 +08:00
Sunli
7034734cb4 Fix the validator cannot work on Option<Vec<T>>. 2021-11-30 12:03:55 +08:00
Sunli
b7ba6844af #[grapql(validator(list))] no longer applies to max_items and min_items. 2021-11-30 09:40:02 +08:00
Sunli
81e4cc2142 Custom directive 2021-11-20 09:04:46 +08:00
Sunli
94816b84dc Allowed use validators on wrapper types, for example: Option<T>, MaybeUnefined<T>.
Remove `OutputJson` because `Json` can replace it.
2021-11-18 15:43:12 +08:00
Sunli
723bb10912 Add url, regex and ip validators. 2021-11-17 11:12:52 +08:00
Sunli
d3078e73d0 Remove the ctx parameter of CustomValidator::check. #710 2021-11-17 08:46:13 +08:00
Sunli
2518fd17c6 Add some validators 2021-11-16 16:20:40 +08:00
Sunli
fa59419815 Update documents 2021-11-16 14:51:20 +08:00
Sunli
5a3ed87255 Rework guards 2021-11-16 10:22:39 +08:00
Sunli
a7c82d303a Rework validators 3 2021-11-15 18:37:33 +08:00
Sunli
e81bc7a97b Custom validator 2021-11-15 11:08:56 +08:00
Sunli
958b534b77 Rework validators 2 2021-11-15 09:12:13 +08:00
Sunli
8750d8d34b Rework validators 2021-11-14 21:09:14 +08:00
Sunli
732e232a8e Hide types that are not referenced by visible fields. #698 2021-11-12 07:24:04 +08:00
Sunli
20b73e06f4 Move the methods of the Type trait to InputType and OutputType. 2021-11-12 07:23:05 +08:00
Sunli
0f1e5a19fd If a GraphQL name conflict is detected when creating schema, it will cause panic. #499 2021-11-08 10:25:31 +08:00
Sunli
3306f85a8a Subscription typename - [GraphQL - October 2021] #681 2021-11-02 20:35:05 +08:00
Sunli
91bb9e81fb Specified By - [GraphQL - October 2021] #677 2021-11-02 20:35:05 +08:00
Sunli
7a4b0c0aa3 update ci 2021-11-02 20:34:41 +08:00
Sunli
3964e5c36c
Merge branch 'master' into update-to-rust-edition-2021 2021-11-02 20:08:41 +08:00
Miaxos
897ef79b72 feat: add with for object & complex object & update documentation 2021-10-28 12:42:13 +00:00
Miaxos
cd10c2b6dd feat: use with for simple object 2021-10-28 10:22:39 +00:00
Miaxos
aec3c42bd0 fix: do not use extend, useless 2021-10-28 01:42:15 +00:00
Miaxos
2941b7283d feat: add basic coercion for SimpleObject derived arg 2021-10-27 13:37:13 +00:00