Commit Graph

29 Commits

Author SHA1 Message Date
Sunli
86fc6e69ff Use fully qualified paths in macro expansion #186 2020-06-24 14:04:48 +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
43c8daa132 Add MaybeUndefined type (#123)
* Add MaybeUndefined type
2020-05-28 15:00:55 +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
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
8e9aff105e 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
728989209f The error reason can be returned when the input value is parsed incorrectly. #70 2020-05-10 18:27:46 +08:00
sunli
2755f4f9a9 Use rustdoc comments as graphql desc. #62 2020-05-10 12:41:05 +08:00
sunli
03e1604f0b Fixed #attribute not working on the InputObject fields. 2020-04-08 12:02:48 +08:00
sunli
185e1fb8e6 Add some test, modified from juniper 2020-04-05 16:00:26 +08:00
sunli
788a3b558b v1.4.2 2020-03-22 09:34:32 +08:00
sunli
1d0148f63c Add input value validators 2020-03-21 15:07:11 +08:00
sunli
99f4184f83 Clippy cleanup 2020-03-21 09:32:13 +08:00
sunli
724cb21258 add GraphQL Cursor Connections 2020-03-19 17:20:12 +08:00
sunli
e0471ddc10 auto rename to camelcase 2020-03-09 20:00:57 +08:00
sunli
5ab4f73c76 v0.9.4 2020-03-07 20:54:03 +08:00
sunli
92a95dbbf4 implemented directive (@include, @skip) 2020-03-04 14:24:44 +08:00
sunli
b7a65b6784 support variables 2020-03-04 11:51:42 +08:00
sunli
602f6a656f Support default values 2020-03-04 10:38:07 +08:00
sunli
d0c6db0aba add schema support 2020-03-03 19:15:18 +08:00
sunli
8f448c91e9 create type info 2020-03-03 11:48:49 +08:00
sunli
f090df76f7 add schema model 2020-03-03 11:48:49 +08:00
sunli
332faa70fa query root 2020-03-03 11:48:43 +08:00
sunli
781aabdff0 variables supported 2020-03-02 00:52:05 +08:00
sunli
b62abdcd83 add InputObject 2020-03-01 21:35:39 +08:00
sunli
5030a28361 init commit 2020-03-01 18:54:34 +08:00