Commit Graph

274 Commits

Author SHA1 Message Date
Sunli
a1c8dedd56
Merge pull request #75 from phated/interface-enums
Change interfaces & unions to require enums
2020-05-11 13:44:19 +08:00
Sunli
132811cb91 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
548447cdec Change Unions to enums instead of structs 2020-05-10 21:27:30 -07:00
Blaine Bublitz
14e3b4fe69 Change interfaces to require enums 2020-05-10 20:03:13 -07:00
sunli
0bd5e14ee9 v1.11.3 2020-05-10 23:02:33 +08:00
sunli
925f8d6828 v1.11.2 2020-05-10 22:13:58 +08:00
sunli
841e822359 v1.11.1 2020-05-10 18:42:57 +08:00
sunli
6d7d64866b The error reason can be returned when the input value is parsed incorrectly. #70 2020-05-10 18:27:46 +08:00
sunli
2267e961bf async-graphql-parser v0.2.0 2020-05-10 13:54:57 +08:00
sunli
dc963250e7 Update args.rs 2020-05-10 13:23:34 +08:00
sunli
f64b117859 v1.11.0 2020-05-10 13:09:57 +08:00
sunli
85156b69a8 Use rustdoc comments as graphql desc. #62 2020-05-10 12:41:05 +08:00
sunli
52170b6da3 Remove async-graphql-derive dependency on graphql-parser. 2020-05-10 11:12:07 +08:00
sunli
f7d308be8a Improve parser performance. 2020-05-10 10:59:51 +08:00
sunli
36967ffa4f Add ability to forward field arguments to guard #59 2020-05-09 18:34:57 +08:00
sunli
311859e12a 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
8d5f908f96 v1.10.12 2020-05-07 20:45:33 +08:00
sunli
99ec304a3f v1.10.11 2020-05-07 18:49:26 +08:00
sunli
b985a00160 1.10.10 2020-05-06 06:53:26 +08:00
sunli
d7e3afc822 Change the first parameter of OutputValueType::resolve to be &self 2020-05-05 21:06:48 +08:00
sunli
9cce28a85d v1.10.9 2020-05-05 17:55:01 +08:00
sunli
8ff6339e50 v1.10.8 2020-05-05 13:50:22 +08:00
sunli
de69a70307 v1.10.7 2020-05-05 13:03:55 +08:00
sunli
e3cab73d53 Modify the location of the Guard call. 2020-05-05 13:02:24 +08:00
sunli
be2898ea01 v1.10.6 2020-05-04 07:59:30 +08:00
sunli
dea7dc3ddd v1.10.5 2020-05-03 23:01:14 +08:00
sunli
5e8eba0baa v1.10.4 2020-05-03 22:33:56 +08:00
sunli
f786ce3275 Stops when an error occurs to the subscription stream. 2020-05-03 21:21:54 +08:00
sunli
f3b0937523 v1.10.3 2020-05-03 16:03:27 +08:00
sunli
95c6c0bbf3 Report subscription stream errors to the client. 2020-05-03 16:02:46 +08:00
sunli
8c2d8bffb4 v1.10.2 2020-05-03 10:18:45 +08:00
sunli
fded6fabcc v1.10.1 2020-05-02 11:03:04 +08:00
sunli
1df09fcf77 v1.10.0 2020-05-02 07:59:00 +08:00
sunli
98864c6879 Add field guard 2020-05-02 07:57:34 +08:00
sunli
dec3337ac8 Object, SimpleObject, Subscription to add missing the where clause 2020-04-28 18:05:06 +08:00
sunli
84745c5179 v1.9.24 2020-04-28 15:56:23 +08:00
sunli
aefe448ede Move project to async-graphql 2020-04-28 15:41:31 +08:00
sunli
495df5a9ab Add tracing extension 2020-04-28 15:01:19 +08:00
sunli
fee4393b3b v1.9.23 2020-04-27 18:54:22 +08:00
sunli
124bf2e831 v1.9.22 2020-04-27 18:12:39 +08:00
sunli
0c541c010d Replace the impl_scalar macro with the procedural macro Scalar 2020-04-27 17:58:10 +08:00
sunli
489f3dce38 v1.9.21 2020-04-27 14:15:12 +08:00
sunli
3ef57de8df Fix some bugs 2020-04-27 14:14:29 +08:00
sunli
c0c0961837 v1.9.20 2020-04-27 13:03:56 +08:00
sunli
1bc97de889 fix #33 2020-04-27 12:57:52 +08:00
sunli
aac5b3bfb2 v1.9.19 2020-04-26 23:10:16 +08:00
sunli
0607c6da56 Remove the redundant field parameter for OutputType::resolve_field. 2020-04-26 15:12:18 +08:00
sunli
d74d1a9346 Some minor changes 2020-04-26 12:34:08 +08:00
sunli
4850d7a77f v1.9.18 2020-04-25 15:09:11 +08:00
sunli
d501f73a08 v1.9.17 2020-04-23 18:11:03 +08:00
sunli
fcd7cb7bab v1.9.16 2020-04-23 16:09:05 +08:00
sunli
4fb91e831d Update subscription.rs 2020-04-23 16:08:32 +08:00
sunli
816cebf8c4 v1.9.15 2020-04-23 15:30:12 +08:00
sunli
e4981d41ab v1.9.14 2020-04-23 14:52:53 +08:00
sunli
4b7a388025 v1.9.13 2020-04-23 11:46:48 +08:00
sunli
7a4d3f2899 v1.9.12 2020-04-23 11:27:16 +08:00
sunli
c73ae6a169 The subscriptions field supports a return value of type FieldResult 2020-04-23 11:26:36 +08:00
sunli
09624cab24 v1.9.11
Add context data for subscription
2020-04-23 10:26:16 +08:00
sunli
027fa368ab v1.9.10 2020-04-22 15:00:17 +08:00
sunli
6eb6c9cd9a Fix interface resolver bug 2020-04-22 14:59:14 +08:00
sunli
64d897a384 v1.9.9 2020-04-22 13:30:41 +08:00
sunli
297d1e7cbb v1.9.8 2020-04-21 20:49:32 +08:00
sunli
f7a2fe5fa5 Add SchemaBuilder::register_type method 2020-04-21 20:47:48 +08:00
sunli
e94fa3b993 v1.9.7
Add a `ref` attribute to the field attribute of `SimpleObject`.
2020-04-21 15:40:19 +08:00
sunli
804f8b58a4 v1.9.6
Add SimpleObject support to Interface
2020-04-21 15:27:43 +08:00
sunli
db32d2a071 v1.9.5 2020-04-21 12:13:14 +08:00
sunli
50dabfb716 v1.9.4 2020-04-20 14:37:28 +08:00
sunli
245dd96e91 v1.9.3 2020-04-18 12:26:25 +08:00
sunli
7761277f42 Add InputValueValidatorExt trait 2020-04-18 10:25:39 +08:00
sunli
2c664bb7d7 Add some docs
v1.9.2
2020-04-17 11:06:33 +08:00
sunli
51ea8696ac Add some docs 2020-04-16 17:06:46 +08:00
sunli
28dea0e06a v1.9.1 2020-04-14 12:09:59 +08:00
sunli
26046ce809 v1.9.0 2020-04-14 09:53:17 +08:00
sunli
4d6b484150 v1.8.1 2020-04-11 17:40:29 +08:00
sunli
dc08724d71 Update object.rs 2020-04-10 10:37:37 +08:00
sunli
8d98415fbd v1.8.0 2020-04-10 10:26:08 +08:00
sunli
c6dfe06ef9 Add federation example 2020-04-10 10:20:43 +08:00
sunli
f1d0b3f641 Add federation support 2020-04-09 22:03:09 +08:00
sunli
4e9c6cf1fb Fixed #attribute not working on the InputObject fields. 2020-04-08 12:02:48 +08:00
sunli
16ffb0a7b1 v1.7.8 2020-04-08 09:05:54 +08:00
sunli
6c1a550ecf Fixed #derive not working on the Enum. 2020-04-07 21:50:10 +08:00
sunli
c88a0f2c0f v1.7.7 2020-04-07 14:31:34 +08:00
sunli
d3adeb79b1 Add SimpleBroker 2020-04-07 14:30:46 +08:00
sunli
3ac07990bb v1.7.6 2020-04-06 19:57:21 +08:00
sunli
efad20d4c4 Add subscription test 2020-04-06 18:30:38 +08:00
sunli
2864cc81b1 v1.7.5 2020-04-06 13:51:59 +08:00
sunli
631de52400 The subscription field now returns a stream 2020-04-06 13:49:39 +08:00
sunli
6067e221ae v1.7.4 2020-04-05 16:14:22 +08:00
sunli
f9983def4b Add some test, modified from juniper 2020-04-05 16:00:26 +08:00
sunli
bf5661b866 v1.7.3 2020-04-03 13:59:21 +08:00
sunli
42503b3961 v1.7.2 2020-04-02 21:07:30 +08:00
sunli
d3393fa468 v1.7.1 2020-04-02 20:43:23 +08:00
sunli
e6d219c44e Fix inline fragment bug 2020-04-02 20:41:09 +08:00
sunli
4e74044c54 Return the correct type at the union and interface 2020-04-02 20:37:01 +08:00
sunli
52c5825b47 v1.7.0 2020-04-02 15:49:17 +08:00
sunli
10105b8a09 Reimplement the error type and remove the dependency on the anyhow::Error 2020-04-02 10:21:04 +08:00
sunli
3938c2f80c v1.6.8
Add context data support
2020-03-31 11:19:18 +08:00
sunli
41a075a3b8 v1.6.7 2020-03-30 11:34:23 +08:00
sunli
ea3221e006 v1.6.6 2020-03-30 10:46:34 +08:00
sunli
5f2620b9ca v1.6.5 2020-03-30 09:17:48 +08:00
sunli
ba64ecc31d v1.6.4 2020-03-29 20:02:52 +08:00
sunli
b56379094f Field method must be async asynchronous
Support for synchronization functions doe provide performance improvement
2020-03-28 20:11:26 +08:00
sunli
0275172208 v1.6.3 2020-03-27 17:12:14 +08:00
sunli
8272ed77ff Update object.rs 2020-03-27 17:02:05 +08:00
sunli
66050f38e1 Support for synchronous and asynchronous resolve functions 2020-03-27 11:59:58 +08:00
sunli
e1dfab46c4 Add SimpleObject macro 2020-03-27 10:20:20 +08:00
sunli
25210e0e15 v1.6.2 2020-03-26 18:30:29 +08:00
sunli
f8c284d9d4 v1.6.1 2020-03-26 17:14:49 +08:00
sunli
50347bc415 v1.6.0 2020-03-26 11:34:28 +08:00
sunli
457e30ea2f v1.5.2 2020-03-25 15:07:16 +08:00
sunli
41fd8ed40e v1.5.1 2020-03-25 11:39:28 +08:00
sunli
2fc056ad39 v1.5.0
Improve performance
2020-03-24 18:54:22 +08:00
sunli
de63872fc9 v1.4.4 2020-03-22 19:29:52 +08:00
sunli
d6c17f00ba Fix subscription bug 2020-03-22 19:29:24 +08:00
sunli
3f2207aca2 v1.4.3 2020-03-22 16:48:13 +08:00
sunli
c6953b0bbf Add CacheControl for object 2020-03-22 16:45:59 +08:00
sunli
934038150e v1.4.2 2020-03-22 09:34:32 +08:00
sunli
0d95cc6b0c v1.4.1 2020-03-21 16:13:57 +08:00
sunli
b7717c0e24 v1.4.1 2020-03-21 16:13:19 +08:00
sunli
1ced27269b v1.4.0 2020-03-21 15:11:46 +08:00
sunli
280eff5c9d Add input value validators 2020-03-21 15:07:11 +08:00
sunli
2b2be34d4d Clippy cleanup 2020-03-21 09:32:13 +08:00
sunli
d95c0f23b8 v1.3.2 2020-03-20 11:56:08 +08:00
sunli
e5daf63764 v1.3.1 2020-03-19 17:34:30 +08:00
sunli
3751b87807 v1.3.1 2020-03-19 17:33:33 +08:00
sunli
b8db3378db v1.3.0 2020-03-19 17:21:56 +08:00
sunli
ac044d6d30 add GraphQL Cursor Connections 2020-03-19 17:20:12 +08:00
sunli
68339e768d v1.2.1
subscription support directive and fragment
2020-03-18 11:13:45 +08:00
sunli
541568287e Update some documents 2020-03-18 08:44:41 +08:00
sunli
e6cfaf134e Support subscription 2020-03-17 17:26:59 +08:00
sunli
6074474d2c v1.0.0 2020-03-12 17:11:02 +08:00
sunli
5c07e3c5e8 v0.10.8 2020-03-10 20:36:07 +08:00
sunli
d553bf6a6e add PossibleFragmentSpreads rule 2020-03-10 18:07:47 +08:00
sunli
27bebcaaa5 v0.10.7 2020-03-10 14:27:05 +08:00
sunli
d29467d71a v0.10.6 2020-03-10 14:14:29 +08:00
sunli
a8ff1020fb v0.10.5 2020-03-09 20:40:17 +08:00
sunli
5caf8f9c57 auto rename to camelcase 2020-03-09 20:00:57 +08:00
sunli
30149ca9f6 v0.10.4 2020-03-09 18:09:08 +08:00
sunli
482c5b3cf3 v0.10.4 2020-03-09 18:05:52 +08:00
sunli
fa526a1b20 v0.10.3 2020-03-09 12:19:55 +08:00
sunli
3de914df7a v0.10.2 2020-03-09 12:08:50 +08:00
sunli
352d1121b9 v0.10.1 2020-03-08 20:36:06 +08:00
sunli
53dcd0aae5 add some validation code 2020-03-08 20:35:36 +08:00
sunli
426d7923dc implemented union type 2020-03-08 09:21:29 +08:00
sunli
356cbead88 v0.9.4 2020-03-07 20:55:13 +08:00
sunli
206d6499a7 v0.9.4 2020-03-07 20:54:03 +08:00
sunli
70c0b96395 Fixed a problem with the return value reference context lifetime 2020-03-07 18:03:19 +08:00
sunli
6d16372f05 v0.9.2 2020-03-07 12:40:04 +08:00
sunli
535897259d v0.9.1 2020-03-07 11:22:23 +08:00
sunli
f106248989 fix some bugs 2020-03-07 11:21:56 +08:00