Commit Graph

29 Commits

Author SHA1 Message Date
Sunli
914b308ec2 Add #[allow(clippy::all, clippy::pedantic)] for all macros generated code. #192 2020-06-28 14:28:53 +08: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
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
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
Sunli
746544412b Add PostGuard. #129 2020-06-03 14:50:06 +08:00
Sunli
76ff909ccd New data source (#105)
* New data source
2020-05-28 08:02:00 +08:00
sunli
6f924efcf4 Add defer tests 2020-05-20 13:42:55 +08:00
sunli
10a8b71adb Preserve field order for introspection. #89 2020-05-16 10:05:48 +08:00
Sunli
f74652e61a Modify some type names (internal types) 2020-05-15 10:08:37 +08:00
sunli
8299a54456 Improve GraphQL query parser performance. #76 2020-05-12 16:27:06 +08:00
sunli
2755f4f9a9 Use rustdoc comments as graphql desc. #62 2020-05-10 12:41:05 +08:00
sunli
dc7c8d5280 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
35531b65f8 Change the first parameter of OutputValueType::resolve to be &self 2020-05-05 21:06:48 +08:00
sunli
9b917e19b3 Modify the location of the Guard call. 2020-05-05 13:02:24 +08:00
sunli
331e65a72b Add field guard 2020-05-02 07:57:34 +08:00
sunli
7893c2d482 Object, SimpleObject, Subscription to add missing the where clause 2020-04-28 18:05:06 +08:00
sunli
f6e95876b8 Fix some bugs 2020-04-27 14:14:29 +08:00
sunli
4659da9c30 fix #33 2020-04-27 12:57:52 +08:00
sunli
a4b4e69ea7 Remove the redundant field parameter for OutputType::resolve_field. 2020-04-26 15:12:18 +08:00
sunli
041eb7b1b7 v1.9.7
Add a `ref` attribute to the field attribute of `SimpleObject`.
2020-04-21 15:40:19 +08:00
sunli
64e68c949b v1.9.6
Add SimpleObject support to Interface
2020-04-21 15:27:43 +08:00
sunli
4cf83e333b Add some docs
v1.9.2
2020-04-17 11:06:33 +08:00
sunli
86bdb422b1 Add federation support 2020-04-09 22:03:09 +08:00
sunli
14860d9b88 Reimplement the error type and remove the dependency on the anyhow::Error 2020-04-02 10:21:04 +08:00
sunli
15fbe9502a Add SimpleObject macro 2020-03-27 10:20:20 +08:00