Commit Graph

104 Commits

Author SHA1 Message Date
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
sunli
2e3df8ff43 Remove async-graphql-derive dependency on graphql-parser. 2020-05-10 11:12:07 +08:00
sunli
bc2966bc0d Improve parser performance. 2020-05-10 10:59:51 +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
2c53df7bb5 Stops when an error occurs to the subscription stream. 2020-05-03 21:21:54 +08:00
sunli
220cd1e775 Report subscription stream errors to the client. 2020-05-03 16:02:46 +08:00
sunli
81e2143015 v1.10.1 2020-05-02 11:03:04 +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
0cf339bc06 v1.9.23 2020-04-27 18:54:22 +08:00
sunli
61583f54a3 Replace the impl_scalar macro with the procedural macro Scalar 2020-04-27 17:58:10 +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
88f6e468e7 Some minor changes 2020-04-26 12:34:08 +08:00
sunli
951a792e01 Update subscription.rs 2020-04-23 16:08:32 +08:00
sunli
dcd01974b0 v1.9.13 2020-04-23 11:46:48 +08:00
sunli
aac2710c99 The subscriptions field supports a return value of type FieldResult 2020-04-23 11:26:36 +08:00
sunli
a4781523fb v1.9.11
Add context data for subscription
2020-04-23 10:26:16 +08:00
sunli
279244d106 Fix interface resolver bug 2020-04-22 14:59:14 +08:00
sunli
00513ffb02 v1.9.9 2020-04-22 13:30:41 +08:00
sunli
c11ed53c48 Add SchemaBuilder::register_type method 2020-04-21 20:47:48 +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
affacd81d0 v1.9.4 2020-04-20 14:37:28 +08:00
sunli
ad9cd7073c Add InputValueValidatorExt trait 2020-04-18 10:25:39 +08:00
sunli
4cf83e333b Add some docs
v1.9.2
2020-04-17 11:06:33 +08:00
sunli
790060a611 Add some docs 2020-04-16 17:06:46 +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