Skip to content

Commit

Permalink
Update async-graphql
Browse files Browse the repository at this point in the history
  • Loading branch information
bkonkle committed Jan 8, 2025
1 parent 4e4d57c commit 251671d
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions examples/async-graphql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ integration = []

[dependencies]
anyhow = "1.0"
async-graphql = { git = "https://github.com/bkonkle/async-graphql.git", branch = "update-http-axum", features = [
async-graphql = { git = "https://github.com/aumetra/async-graphql", branch = "axum-0.8", features = [
"chrono",
"dataloader",
] }
async-graphql-axum = { git = "https://github.com/bkonkle/async-graphql.git", branch = "update-http-axum" }
async-graphql-axum = { git = "https://github.com/aumetra/async-graphql", branch = "axum-0.8" }
async-trait = "0.1"
axum = { version = "0.8", features = ["ws", "macros"] }
chrono = { version = "0.4.19", features = ["serde"] }
Expand Down
1 change: 0 additions & 1 deletion examples/async-graphql/src/domains/episodes/loaders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ pub struct Loader {
episodes: Arc<Box<dyn Service>>,
}

#[async_trait]
impl dataloader::Loader<String> for Loader {
type Value = Episode;
type Error = FieldError;
Expand Down
1 change: 0 additions & 1 deletion examples/async-graphql/src/domains/profiles/loaders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ pub struct Loader {
profiles: Arc<Box<dyn Service>>,
}

#[async_trait]
impl dataloader::Loader<String> for Loader {
type Value = Profile;
type Error = FieldError;
Expand Down
1 change: 0 additions & 1 deletion examples/async-graphql/src/domains/role_grants/loaders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ pub struct Loader {
role_grants: Arc<Box<dyn Service>>,
}

#[async_trait]
impl dataloader::Loader<String> for Loader {
type Value = RoleGrant;
type Error = FieldError;
Expand Down
1 change: 0 additions & 1 deletion examples/async-graphql/src/domains/shows/loaders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ pub struct Loader {
shows: Arc<Box<dyn Service>>,
}

#[async_trait]
impl dataloader::Loader<String> for Loader {
type Value = Show;
type Error = FieldError;
Expand Down
1 change: 0 additions & 1 deletion examples/async-graphql/src/domains/users/loaders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ pub struct Loader {
locations: Arc<Box<dyn Service>>,
}

#[async_trait]
impl dataloader::Loader<String> for Loader {
type Value = User;
type Error = FieldError;
Expand Down
2 changes: 1 addition & 1 deletion examples/async-graphql/tests/test_events_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async fn test_ping() -> Result<()> {
let message = serde_json::to_string(&IncomingMessage::Ping)?;

utils
.send_message(Message::Text(message), Some(&token), |read| {
.send_message(Message::Text(message.into()), Some(&token), |read| {
read.take(1).for_each(|message| async {
let data = message.unwrap().into_data();
let result = std::str::from_utf8(&data).unwrap();
Expand Down
4 changes: 2 additions & 2 deletions nakago_async_graphql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ homepage.workspace = true

[dependencies]
anyhow = "1.0"
async-graphql = { version = "6.0", git = "https://github.com/bkonkle/async-graphql.git", branch = "update-http-axum", features = [
async-graphql = { git = "https://github.com/aumetra/async-graphql", branch = "axum-0.8", features = [
"chrono",
"dataloader",
] }
async-graphql-axum = { version = "6.0", git = "https://github.com/bkonkle/async-graphql.git", branch = "update-http-axum" }
async-graphql-axum = { git = "https://github.com/aumetra/async-graphql", branch = "axum-0.8" }
async-trait = "0.1"
axum = { version = "0.8", features = ["macros"] }
derive-new = "0.7"
Expand Down

0 comments on commit 251671d

Please sign in to comment.