Skip to content

Commit

Permalink
Update examples for async-graphql 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sunli829 committed Oct 13, 2020
1 parent 6bfef8a commit d0dc2ac
Show file tree
Hide file tree
Showing 19 changed files with 35 additions and 35 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 <scott_s829@163.com>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.24"
async-graphql-actix-web = "2.0.0-alpha.24"
async-graphql = "2.0.0"
async-graphql-actix-web = "2.0.0"
actix-web = "3.0.0"
actix-rt = "1.1.0"
thiserror = "1.0"
Expand Down
4 changes: 2 additions & 2 deletions actix-web/error-extensions/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ extern crate thiserror;
use actix_web::{guard, web, App, HttpResponse, HttpServer};
use async_graphql::http::{playground_source, GraphQLPlaygroundConfig};
use async_graphql::{
EmptyMutation, EmptySubscription, Error as FieldError, ErrorExtensions, Object,
Result as FieldResult, ResultExt, Schema,
EmptyMutation, EmptySubscription, ErrorExtensions, FieldError, FieldResult, Object, ResultExt,
Schema,
};
use async_graphql_actix_web::{Request, Response};

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 <scott_s829@163.com>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.24"
async-graphql-actix-web = "2.0.0-alpha.24"
async-graphql = "2.0.0"
async-graphql-actix-web = "2.0.0"
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 <scott_s829@163.com>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.24"
async-graphql-actix-web = "2.0.0-alpha.24"
async-graphql = "2.0.0"
async-graphql-actix-web = "2.0.0"
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 <scott_s829@163.com>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.24"
async-graphql-actix-web = "2.0.0-alpha.24"
async-graphql = "2.0.0"
async-graphql-actix-web = "2.0.0"
actix-web = "3.0.0"
actix-rt = "1.1.0"
futures = "0.3"
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 <scott_s829@163.com>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.24"
async-graphql-actix-web = "2.0.0-alpha.24"
async-graphql = "2.0.0"
async-graphql-actix-web = "2.0.0"
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 <scott_s829@163.com>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.24"
async-graphql-warp = "2.0.0-alpha.24"
async-graphql = "2.0.0"
async-graphql-warp = "2.0.0"
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 <scott_s829@163.com>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.24"
async-graphql-warp = "2.0.0-alpha.24"
async-graphql = "2.0.0"
async-graphql-warp = "2.0.0"
tokio = { version = "0.2", features = ["macros"] }
warp = "0.2"
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 <scott_s829@163.com>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.24"
async-graphql-warp = "2.0.0-alpha.24"
async-graphql = "2.0.0"
async-graphql-warp = "2.0.0"
tokio = { version = "0.2", features = ["macros"] }
warp = "0.2"
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 <scott_s829@163.com>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.24"
async-graphql = "2.0.0"
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 <scott_s829@163.com>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.24"
async-graphql = "2.0.0"
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 <scott_s829@163.com>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.24"
async-graphql = "2.0.0"
slab = "0.4.2"
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 <daniel@simplificAR.io>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.24"
async-graphql-rocket = "2.0.0-alpha.24"
async-graphql = "2.0.0"
async-graphql-rocket = "2.0.0"
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 <vkill.net@gmail.com>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.24"
async-graphql-tide = "2.0.0-alpha.24"
async-graphql = "2.0.0"
async-graphql-tide = "2.0.0"
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 <vkill.net@gmail.com>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.24"
async-graphql-tide = "2.0.0-alpha.24"
async-graphql = "2.0.0"
async-graphql-tide = "2.0.0"
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 <vkill.net@gmail.com>"]
edition = "2018"

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

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 <scott_s829@163.com>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.24"
async-graphql-warp = "2.0.0-alpha.24"
async-graphql = "2.0.0"
async-graphql-warp = "2.0.0"
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 <scott_s829@163.com>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.24"
async-graphql-warp = "2.0.0-alpha.24"
async-graphql = "2.0.0"
async-graphql-warp = "2.0.0"
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 <scott_s829@163.com>"]
edition = "2018"

[dependencies]
async-graphql = "2.0.0-alpha.24"
async-graphql-warp = "2.0.0-alpha.24"
async-graphql = "2.0.0"
async-graphql-warp = "2.0.0"
tokio = { version = "0.2", features = ["macros"] }
warp = "0.2"
serde_json = "1.0"
Expand Down

0 comments on commit d0dc2ac

Please sign in to comment.