Commit Graph

139 Commits

Author SHA1 Message Date
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
sunli
07a5ee4a9f Update subscription.rs 2020-05-13 09:03:19 +08:00
Samuel Hurel
5afd4a4372 Fix tests 2020-05-12 12:40:57 +02:00
sunli
b8095e8dd3 pre-release v1.12.1 2020-05-12 17:20:23 +08:00
Sunli
2f31fb7d09 Merge pull request #80 from IcanDivideBy0/derive_renamed_crate
Allow for crate renaming in Cargo.toml
2020-05-12 16:46:36 +08:00
Samuel Hurel
e0669219aa Allow for crate renaming in Cargo.toml 2020-05-12 10:38:59 +02: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
693ffda56a Merge pull request #75 from phated/interface-enums
Change interfaces & unions to require enums
2020-05-11 13:44:19 +08:00
Sunli
3609eedcd2 DataSource and Scalar macros no longer hide errors. #73
I still haven't figured out why this problem was caused, but I solved it in a way that seemed silly together.
2020-05-11 13:31:13 +08:00
Blaine Bublitz
b7bc7fea12 Change Unions to enums instead of structs 2020-05-10 21:27:30 -07:00
Blaine Bublitz
9ee269c512 Change interfaces to require enums 2020-05-10 20:03:13 -07: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
2f98b09b6b Update args.rs 2020-05-10 13:23:34 +08:00
sunli
2755f4f9a9 Use rustdoc comments as graphql desc. #62 2020-05-10 12:41:05 +08:00