Commit Graph

1346 Commits

Author SHA1 Message Date
Sunli
1f93298164 Release 2.4.0
async-graphql@2.4.0
async-graphql-actix-web@2.4.0
async-graphql-derive@2.4.0
async-graphql-tide@2.4.0
async-graphql-warp@2.4.0

Generated by cargo-workspaces
2020-12-21 19:57:05 +08:00
Sunli
42f348c5da Merge branch 'dataloader' 2020-12-21 19:24:40 +08:00
Sunli
f58fe85822 Update docs. 2020-12-21 19:23:51 +08:00
Sunli
13e714ca5e Update docs. 2020-12-21 14:21:10 +08:00
Sunli
050e31ca7c Merge branch 'dataloader' 2020-12-21 13:40:10 +08:00
Sunli
af1d501d75 Add dataloader 2020-12-21 13:33:36 +08:00
Sunli
383456f007 Merge pull request #358 from Aaron1011/fix/object-raw-ident
Strip `r#` prefix when constructing getter ident
2020-12-21 08:52:09 +08:00
Aaron Hill
d8780bd720 Strip r# prefix when constructing getter ident
When calling `to_string()` on an identifier, the returned string will
have an `r#` prefix if the original identifer was a raw identifier. This
prefix needs to be removed if the identifier is interpolated into
another identifier (e.g. `__some_prefix__r#other_ident`) in order for
the new identifier to be valid.

This issue was previously masked due to the fact that the relevant test
uses `r#i32`. It's possible to use `i32` as a normal (non-raw) ident -
due to a bug in rustc, this means that the user-supplied `r#` prefix
will be lost when calling `to_string()`. This bug will eventually be
fixed, causing `to_string()` to start returning `r#i32` instead of
`i32`.

This commit strips the `r#` prefix (if present) from an identifier
before using it to construct a new identifier. The relevant test is
updated to use `r#match`, which actually requires the `r#` prefix to be
a valid identifier. This causes the test to fail without this patch on
current versions of Rust.
2020-12-20 19:08:22 -05:00
Sunli
f8b8099209 Release 2.3.2
async-graphql@2.3.2
async-graphql-actix-web@2.3.2
async-graphql-derive@2.3.2
async-graphql-tide@2.3.2
async-graphql-warp@2.3.2

Generated by cargo-workspaces
2020-12-19 18:40:00 +08:00
Sunli
6043543df7 Add custom complexity for subscription. 2020-12-19 18:39:33 +08:00
Sunli
725cb668aa Release 2.3.1
async-graphql@2.3.1
async-graphql-actix-web@2.3.1
async-graphql-tide@2.3.1
async-graphql-warp@2.3.1

Generated by cargo-workspaces
2020-12-18 23:58:48 +08:00
Sunli
0d76987f40 Add Analyzer extension. 2020-12-18 23:58:03 +08:00
Sunli
5120813937 Update docs. 2020-12-18 23:10:57 +08:00
Sunli
c49c3ffa07 Update docs. 2020-12-18 19:31:36 +08:00
Sunli
fa66dda3b6 Release 2.3.0
async-graphql@2.3.0
async-graphql-actix-web@2.3.0
async-graphql-derive@2.3.0
async-graphql-tide@2.3.0
async-graphql-warp@2.3.0

Generated by cargo-workspaces
2020-12-18 19:09:43 +08:00
Sunli
bf9e3ec578 Improve depth and complex. 2020-12-18 18:56:28 +08:00
Sunli
c6d8df0bdb Remove async-channel and async-mutex from dependencies. 2020-12-17 10:05:32 +08:00
Sunli
8bc6524895 Release 2.2.0
async-graphql@2.2.0
async-graphql-actix-web@2.2.0
async-graphql-derive@2.2.0
async-graphql-tide@2.2.0
async-graphql-warp@2.2.0

Generated by cargo-workspaces
2020-12-15 20:30:36 +08:00
Sunli
fe24247c9d Add the skip attribute to the InputObject fields. 2020-12-15 20:29:59 +08:00
Sunli
004ff93557 Update docs 2020-12-15 15:12:05 +08:00
Sunli
e8f56f1ca9 Release 2.1.9
async-graphql@2.1.9
async-graphql-actix-web@2.1.9
async-graphql-tide@2.1.9
async-graphql-warp@2.1.9

Generated by cargo-workspaces
2020-12-15 10:06:20 +08:00
Sunli
56b60a0f56 Update docs 2020-12-15 10:05:44 +08:00
Sunli
43aa06e8dd Release 2.1.8
async-graphql@2.1.8
async-graphql-actix-web@2.1.8
async-graphql-derive@2.1.8
async-graphql-tide@2.1.8
async-graphql-warp@2.1.8

Generated by cargo-workspaces
2020-12-12 17:05:40 +08:00
Sunli
ba23761cb4 Add visible attributes on types, fields, and parameters, allowing some content to be hidden based on conditions. 2020-12-12 16:23:53 +08:00
Sunli
5c39d0197d Rename InputValueType to InputType and OutputValueType to OutputType. 2020-12-11 15:37:50 +08:00
Sunli
ad7b025e70 Disable HTTP GET test for tide. 2020-12-05 09:49:50 +08:00
Sunli
d388ee6760 Release 2.1.7
async-graphql@2.1.7
async-graphql-actix-web@2.1.7
async-graphql-tide@2.1.7
async-graphql-warp@2.1.7

Generated by cargo-workspaces
2020-12-05 08:44:39 +08:00
Sunli
6f81689827 Update Cargo.toml 2020-12-05 08:41:10 +08:00
Sunli
2a7863cc3b Merge pull request #350 from pfernie/graphql-ws-subproto
Detect subprotocol for GraphQL Over WebSocket subscriptions
2020-12-05 08:34:08 +08:00
Patrick Fernie
6f3e861e27 support client specifying multiple protocols in Sec-WebSocket-Protocol negotiation 2020-12-04 12:16:14 -05:00
Sunli
b3bd8603e3 Add tests for graphql-ws. 2020-12-04 16:44:48 +08:00
Sunli
06bd349dde Add WSSubscription::start_with_initializer and update examples. 2020-12-04 12:35:35 +08:00
Sunli
46d01db40f Merge branch 'master' into pr/350 2020-12-04 12:17:23 +08:00
Sunli
4b00f9393a Add websocket subprotocol for actix-web. 2020-12-04 12:13:52 +08:00
Patrick Fernie
e25bcf1c98 use Sec-WebSocket-Protocol header to negotiate protocol 2020-12-03 16:16:07 -05:00
Patrick Fernie
0e711b782e rustfmt fixes 2020-12-02 08:41:12 -05:00
Patrick Fernie
7fb6d7bfbe Add graphql-ws feature for subprotcol selection
On 2020-09-14 a revised version of the [GraphQL over
WebSocket](https://the-guild.dev/blog/graphql-over-websockets) spec was
released as [graphql-ws](https://github.com/enisdenjo/graphql-ws), which
differs from the de facto standard implemented by
[subscriptions-transport-ws](https://github.com/apollographql/subscriptions-transport-ws).

This adds a new `cargo` (non-default) feature, `graphql_ws`, which when enabled utilizes the new protocol spec.

Original [subscriptions-transport-ws
protocol](https://github.com/apollographql/subscriptions-transport-ws/blob/master/PROTOCOL.md)
Revised [graphql-ws
protocol](https://github.com/enisdenjo/graphql-ws/blob/master/PROTOCOL.md)
2020-12-02 08:13:00 -05:00
Sunli
33b279c88b Release 2.1.6
async-graphql@2.1.6
async-graphql-actix-web@2.1.6
async-graphql-tide@2.1.6
async-graphql-warp@2.1.6

Generated by cargo-workspaces
2020-11-30 19:43:08 +08:00
Sunli
83b659bafb Add Context::field function. #346 2020-11-30 19:41:35 +08:00
Sunli
67be4cb541 Update examples 2020-11-30 14:20:15 +08:00
Sunli
6cdd7e44a3 Update upload.rs 2020-11-30 13:47:00 +08:00
Sunli
3a0dda2224 Remove the dependency on bytes crate. 2020-11-30 13:43:17 +08:00
Sunli
84902a6679 Bump futures-util from 0.3.6 to 0.3.8
Bump pin-project-lite from 0.1.10 to 0.2.0
Bump spin from 0.6.0 to 0.7.0
Bump bytes from 0.5.4 to 0.6.0
2020-11-30 13:08:27 +08:00
Sunli
825945f056 Merge pull request #347 from arlyon/patch-1
Bump tide to 0.15.0
2020-11-30 12:54:30 +08:00
Alexander Lyon
2b6a7a8e3d Bump tide to 0.15.0 2020-11-27 10:11:55 +00:00
Sunli
d5e2e34b41 Release 2.1.5
async-graphql@2.1.5
async-graphql-actix-web@2.1.5
async-graphql-tide@2.1.5
async-graphql-warp@2.1.5

Generated by cargo-workspaces
2020-11-27 10:26:49 +08:00
Sunli
9b10ebeab5 Fix the problem that the fields of the list are not merged correctly.#345 2020-11-27 10:26:23 +08:00
Sunli
3c83a48a81 Update examples 2020-11-27 09:28:06 +08:00
Sunli
6350030853 Release 2.1.4
async-graphql@2.1.4
async-graphql-actix-web@2.1.4
async-graphql-derive@2.1.4
async-graphql-tide@2.1.4
async-graphql-warp@2.1.4

Generated by cargo-workspaces
2020-11-23 12:51:43 +08:00
Sunli
3a5cc3aae2 Clippy clean 2020-11-23 12:50:35 +08:00