Commit Graph

62 Commits

Author SHA1 Message Date
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
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
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
43c8daa132 Add MaybeUndefined type (#123)
* Add MaybeUndefined type
2020-05-28 15:00:55 +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
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
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
f24c6fceff Add ability to forward field arguments to guard #59 2020-05-09 18:34:57 +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
02b04d796a v1.10.6 2020-05-04 07:59:30 +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
8faa376776 Add tracing extension 2020-04-28 15:01:19 +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
09d5e5f489 v1.9.0 2020-04-14 09:53:17 +08:00
sunli
cf9b6a5a41 Update object.rs 2020-04-10 10:37:37 +08:00
sunli
36360bcd4d Add federation example 2020-04-10 10:20:43 +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
643213206b Field method must be async asynchronous
Support for synchronization functions doe provide performance improvement
2020-03-28 20:11:26 +08:00
sunli
e593aaadff Update object.rs 2020-03-27 17:02:05 +08:00
sunli
f231f690e2 Support for synchronous and asynchronous resolve functions 2020-03-27 11:59:58 +08:00
sunli
bc0d6603c1 v1.6.0 2020-03-26 11:34:28 +08:00
sunli
b0369860dd v1.5.1 2020-03-25 11:39:28 +08:00
sunli
0769513c8b v1.5.0
Improve performance
2020-03-24 18:54:22 +08:00
sunli
e6bb9b82ed Add CacheControl for object 2020-03-22 16:45:59 +08:00
sunli
788a3b558b v1.4.2 2020-03-22 09:34:32 +08:00
sunli
ccd99b7f5f v1.4.1 2020-03-21 16:13:19 +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
60b0282a89 Support subscription 2020-03-17 17:26:59 +08:00
sunli
e0471ddc10 auto rename to camelcase 2020-03-09 20:00:57 +08:00
sunli
d7692414ea add some validation code 2020-03-08 20:35:36 +08:00
sunli
61fa882a89 Fixed a problem with the return value reference context lifetime 2020-03-07 18:03:19 +08:00
sunli
b4edae7981 Added support for inline fragment 2020-03-07 10:39:55 +08:00
sunli
69b3dea88c implemented interface 2020-03-06 23:58:43 +08:00
sunli
2351e75f2c fix some bug
add starwars example
2020-03-05 21:34:31 +08:00