Commit Graph

153 Commits

Author SHA1 Message Date
Sunli
d398506282 Remove debug code. 2020-09-03 20:23:35 +08:00
Sunli
78a1a33cda Add flatten type field support for input objects. #255 2020-09-03 20:00:33 +08:00
Sunli
c35eecd90d Merge subscriptions #243 2020-08-27 15:35:48 +08:00
Sunli
a0148675c8 Add support for mut field args. 2020-08-17 21:48:53 +08:00
Sunli
2a62c56104 Add derive macro GQLMergeObject. #231 2020-08-10 14:11:46 +08:00
Sunli
b0403f4e99 Add Default impl for MergedObject. #231 2020-08-10 10:47:30 +08:00
Sunli
4b6bb38e83 Add MergedObject type. #231 2020-08-09 15:03:10 +08:00
Sunli
2cf350a5c8 Removes code about streaming requests. 2020-07-31 10:10:03 +08:00
Sunli
a18abab7b7 Fix Federation schema throws error while using multiple Option inputs #211 2020-07-17 10:14:40 +08:00
Sunli
4d3851e1b5 Replace log crate with xlog. 2020-07-15 18:05:24 +08:00
Sunli
53a2a58d13 Turn off some warnings in code generated. 2020-07-03 09:41:26 +08:00
Sunli
d03e939394 Correct handling of raw identifiers #195 2020-07-02 10:25:20 +08:00
Sunli
b84a3a36d2 Fix Subscriptions issue: "multiple applicable items in scope" #194 2020-06-30 16:14:09 +08:00
Sunli
914b308ec2 Add #[allow(clippy::all, clippy::pedantic)] for all macros generated code. #192 2020-06-28 14:28:53 +08:00
Blaine Bublitz
0fde868459 Fix issue with unwrapping derive attributes 2020-06-25 13:54:13 -07:00
Sunli
86fc6e69ff Use fully qualified paths in macro expansion #186 2020-06-24 14:04:48 +08:00
Sunli
eb7a72aac6 Remove ref attribute for SimpleObject fields, and add owned attribute. 2020-06-23 14:42:57 +08:00
Sunli
fe28659e8c Update object.rs 2020-06-19 12:49:45 +08:00
Sunli
362ba90e7d Add support for extending an entity with computed fields (advanced) #180 2020-06-19 12:37:52 +08:00
Sunli
665b337bf2 Remove all datasource-related code and update the documentation. 2020-06-15 14:17:19 +08:00
William Myers
1aef56244f Add allow(unused_braces, unused_parens) attribute
This fixes false positive warnings for the stable compiler.
2020-06-11 14:36:38 -06:00
Sunli
6f7a3ea0e4 Add GQLInterface and GQLUnion 2020-06-11 15:08:51 +08:00
Sunli
82eefd67fd Add GQLEnum, GQLInputObject, GQLSimpleObject macros. #164
use `proc_macro_derive` to solve the problem that Enum, InputObject, and SimpleObject do not support the #cfg attribute.
2020-06-11 11:23:23 +08:00
William Myers
44ca95a74f Remove check_reserved_name
This allows types to end in Connection or be named PageInfo.

Addresses #126
2020-06-07 20:30:40 -06:00
Sunli
1c1c50cef0 Rustfmt 2020-06-06 15:48:21 +08:00
Sunli
ed7b181034 Rustfmt 2020-06-06 12:41:17 +08:00
Sunli
5f9e68d349 Update subscription.rs 2020-06-06 12:06:09 +08:00
Sunli
edec696610 Add tests for feature attribute 2020-06-06 11:49:29 +08:00
Sunli
3ca2dada0a Rustfmt and Clippy 2020-06-05 21:42:24 +08:00
Sunli
b31ac79123 add feature attribute to field attribute inside SimpleObject 2020-06-05 21:17:15 +08:00
Coenen Benjamin
1084c44535 add feature attribute to field attribute inside Object (#153)
* add feature support in field attribute
2020-06-05 21:06:53 +08:00
Sunli
746544412b Add PostGuard. #129 2020-06-03 14:50:06 +08:00
Sunli
b10aa5fde8 Little performance optimization. 2020-06-02 12:02:14 +08:00
Sunli
7f62b7d92c Fix validators bug 2020-05-31 09:55:41 +08:00
Sunli
51d588e091 Add #![forbid(unsafe_code)] to all sub crates 2020-05-29 17:33:19 +08:00
Sunli
43c8daa132 Add MaybeUndefined type (#123)
* Add MaybeUndefined type
2020-05-28 15:00:55 +08:00
Sunli
5ba1b19e52 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
76ff909ccd New data source (#105)
* New data source
2020-05-28 08:02:00 +08:00
William Myers
e465e562e9 Add #crate_name to Value in InputValueType derive 2020-05-27 13:16:53 -06:00
Sunli
b16fc7b9b9 Add the method parameter to the interface field. #112 2020-05-27 10:25:23 +08:00
Sunli
bb97e86410 Add some tests for default value 2020-05-27 09:27:59 +08:00
Sunli
a9d3ac9cf8 Implement a type-safe default value definition for InputValue. #111 2020-05-26 20:43:53 +08:00
sunli
6f924efcf4 Add defer tests 2020-05-20 13:42:55 +08:00
Sunli
75bfba057a Add Deferred type and @defer directive. #51 2020-05-19 20:53:29 +08:00
Sunli
d00e3e8c25 The scalar name and description attributes are placed on the process macro attributes. #97 2020-05-19 13:27:01 +08:00
Sunli
26e737014e Support multiple lines of rustdoc as a type description. 2020-05-18 10:09:09 +08:00
sunli
10a8b71adb Preserve field order for introspection. #89 2020-05-16 10:05:48 +08:00
Sunli
6de85377f7 Rename async_graphql_parser::ast to async_graphql_parser::query 2020-05-15 10:38:48 +08:00
Sunli
f74652e61a Modify some type names (internal types) 2020-05-15 10:08:37 +08:00
sunli
a4a92dcb8c Fix the problem described in #80 2020-05-13 11:37:07 +08:00