Skip to content

Commit

Permalink
Update examples for async-graphql 2.0.0-alpha.7
Browse files Browse the repository at this point in the history
  • Loading branch information
sunli829 committed Sep 15, 2020
1 parent cb1531d commit 1620b92
Show file tree
Hide file tree
Showing 24 changed files with 33 additions and 45 deletions.
4 changes: 2 additions & 2 deletions actix-web/error-extensions/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ authors = ["sunli <[email protected]>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.5"
async-graphql-actix-web = "2.0.0-alpha.5"
async-graphql = "2.0.0-alpha.7"
async-graphql-actix-web = "2.0.0-alpha.7"
actix-web = "3.0.0"
actix-rt = "1.1.0"
thiserror = "1.0"
Expand Down
4 changes: 2 additions & 2 deletions actix-web/starwars/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ authors = ["sunli <[email protected]>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.5"
async-graphql-actix-web = "2.0.0-alpha.5"
async-graphql = "2.0.0-alpha.7"
async-graphql-actix-web = "2.0.0-alpha.7"
actix-web = "3.0.0"
actix-rt = "1.1.0"
starwars = { path = "../../models/starwars" }
4 changes: 2 additions & 2 deletions actix-web/subscription/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ authors = ["sunli <[email protected]>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.5"
async-graphql-actix-web = "2.0.0-alpha.5"
async-graphql = "2.0.0-alpha.7"
async-graphql-actix-web = "2.0.0-alpha.7"
actix-web = "3.0.0"
actix-rt = "1.1.0"
actix-web-actors = "3.0.0"
Expand Down
4 changes: 2 additions & 2 deletions actix-web/token-from-header/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ authors = ["sunli <[email protected]>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.5"
async-graphql-actix-web = "2.0.0-alpha.5"
async-graphql = "2.0.0-alpha.7"
async-graphql-actix-web = "2.0.0-alpha.7"
actix-web = "3.0.0"
actix-rt = "1.1.0"
futures = "0.3"
Expand Down
2 changes: 0 additions & 2 deletions actix-web/token-from-header/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(clippy::needless_lifetimes)]

use actix_web::{guard, web, App, HttpRequest, HttpResponse, HttpServer, Result};
use actix_web_actors::ws;
use async_graphql::http::{playground_source, GraphQLPlaygroundConfig};
Expand Down
4 changes: 2 additions & 2 deletions actix-web/upload/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ authors = ["sunli <[email protected]>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.5"
async-graphql-actix-web = "2.0.0-alpha.5"
async-graphql = "2.0.0-alpha.7"
async-graphql-actix-web = "2.0.0-alpha.7"
actix-web = "3.0.0"
actix-rt = "1.1.0"
files = { path = "../../models/files" }
4 changes: 2 additions & 2 deletions federation/federation-accounts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["sunli <[email protected]>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.5"
async-graphql-warp = "2.0.0-alpha.5"
async-graphql = "2.0.0-alpha.7"
async-graphql-warp = "2.0.0-alpha.7"
tokio = { version = "0.2", features = ["macros"] }
warp = "0.2"
4 changes: 2 additions & 2 deletions federation/federation-products/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["sunli <[email protected]>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.5"
async-graphql-warp = "2.0.0-alpha.5"
async-graphql = "2.0.0-alpha.7"
async-graphql-warp = "2.0.0-alpha.7"
tokio = { version = "0.2", features = ["macros"] }
warp = "0.2"
2 changes: 0 additions & 2 deletions federation/federation-products/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(clippy::needless_lifetimes)]

use async_graphql::{
Context, EmptyMutation, EmptySubscription, GQLObject, GQLSimpleObject, Schema,
};
Expand Down
4 changes: 2 additions & 2 deletions federation/federation-reviews/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["sunli <[email protected]>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.5"
async-graphql-warp = "2.0.0-alpha.5"
async-graphql = "2.0.0-alpha.7"
async-graphql-warp = "2.0.0-alpha.7"
tokio = { version = "0.2", features = ["macros"] }
warp = "0.2"
2 changes: 0 additions & 2 deletions federation/federation-reviews/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(clippy::needless_lifetimes)]

use async_graphql::{
Context, EmptyMutation, EmptySubscription, GQLObject, GQLSimpleObject, Schema, ID,
};
Expand Down
2 changes: 1 addition & 1 deletion models/books/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["sunli <[email protected]>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.5"
async-graphql = "2.0.0-alpha.7"
slab = "0.4.2"
tokio = { version = "0.2", features = ["time", "stream"] }
futures = "0.3.0"
Expand Down
2 changes: 1 addition & 1 deletion models/files/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ authors = ["sunli <[email protected]>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.5"
async-graphql = "2.0.0-alpha.7"
slab = "0.4.2"
futures = "0.3.0"
2 changes: 1 addition & 1 deletion models/starwars/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ authors = ["sunli <[email protected]>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.5"
async-graphql = "2.0.0-alpha.7"
slab = "0.4.2"
2 changes: 0 additions & 2 deletions models/starwars/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(clippy::needless_lifetimes)]

mod model;

use async_graphql::{EmptyMutation, EmptySubscription, Schema};
Expand Down
4 changes: 2 additions & 2 deletions rocket/starwars/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["Daniel Wiesenberg <[email protected]>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.5"
async-graphql-rocket = "2.0.0-alpha.5"
async-graphql = "2.0.0-alpha.7"
async-graphql-rocket = "2.0.0-alpha.7"
rocket = { git = "https://github.com/SergioBenitez/Rocket/", rev = "dc2c6ec", default-features = false } #TODO: Change to Cargo crate, when Rocket 0.5.0 is released
starwars = { path = "../../models/starwars" }
4 changes: 2 additions & 2 deletions tide/dataloader/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ authors = ["vkill <[email protected]>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.5"
async-graphql-tide = "2.0.0-alpha.5"
async-graphql = "2.0.0-alpha.7"
async-graphql-tide = "2.0.0-alpha.7"
tide = "0.13"
async-std = "1.5.0"
dataloader = "0.12.0"
Expand Down
4 changes: 2 additions & 2 deletions tide/starwars/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ authors = ["vkill <[email protected]>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.5"
async-graphql-tide = "2.0.0-alpha.5"
async-graphql = "2.0.0-alpha.7"
async-graphql-tide = "2.0.0-alpha.7"
tide = "0.13"
async-std = "1.5.0"
starwars = { path = "../../models/starwars" }
Expand Down
4 changes: 2 additions & 2 deletions tide/token-from-header/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ authors = ["vkill <[email protected]>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.5"
async-graphql-tide = "2.0.0-alpha.5"
async-graphql = "2.0.0-alpha.7"
async-graphql-tide = "2.0.0-alpha.7"
tide = "0.13"
async-std = "1.5.0"

Expand Down
2 changes: 0 additions & 2 deletions tide/token-from-header/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(clippy::needless_lifetimes)]

use async_graphql::http::{playground_source, GraphQLPlaygroundConfig};
use async_graphql::{Context, EmptyMutation, EmptySubscription, GQLObject, Schema};
use async_std::task;
Expand Down
4 changes: 2 additions & 2 deletions warp/starwars/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ authors = ["sunli <[email protected]>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.5"
async-graphql-warp = "2.0.0-alpha.5"
async-graphql = "2.0.0-alpha.7"
async-graphql-warp = "2.0.0-alpha.7"
tokio = { version = "0.2", features = ["macros"] }
warp = "0.2"
starwars = { path = "../../models/starwars" }
Expand Down
4 changes: 2 additions & 2 deletions warp/subscription/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ authors = ["sunli <[email protected]>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.5"
async-graphql-warp = "2.0.0-alpha.5"
async-graphql = "2.0.0-alpha.7"
async-graphql-warp = "2.0.0-alpha.7"
tokio = { version = "0.2", features = ["macros"] }
warp = "0.2"
books = { path = "../../models/books" }
4 changes: 2 additions & 2 deletions warp/token-from-header/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ authors = ["sunli <[email protected]>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.5"
async-graphql-warp = "2.0.0-alpha.5"
async-graphql = "2.0.0-alpha.7"
async-graphql-warp = "2.0.0-alpha.7"
tokio = { version = "0.2", features = ["macros"] }
warp = "0.2"
serde_json = "1.0"
Expand Down
2 changes: 0 additions & 2 deletions warp/token-from-header/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(clippy::needless_lifetimes)]

use async_graphql::http::{playground_source, GraphQLPlaygroundConfig};
use async_graphql::{
Context, Data, EmptyMutation, FieldResult, GQLObject, GQLSubscription, Schema,
Expand Down

0 comments on commit 1620b92

Please sign in to comment.