Skip to content

Commit

Permalink
Update async-graphql
Browse files Browse the repository at this point in the history
  • Loading branch information
karatakis committed Oct 9, 2023
1 parent bdb03cd commit e8703af
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
working-directory: ./examples/sqlite
run: cargo test
integration-sqlite-actix:
name: SQLite integration tests
name: SQLite integration tests actix
runs-on: ubuntu-latest
needs:
- check
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ keywords = ["async", "graphql", "mysql", "postgres", "sqlite"]
categories = ["database"]

[dependencies]
async-graphql = { version = "5.0.10", features = ["decimal", "chrono", "dataloader", "dynamic-schema"] }
async-graphql = { version = "6.0.7", features = ["decimal", "chrono", "dataloader", "dynamic-schema"] }
sea-orm = { version = "0.12.0", default-features = false, features = ["seaography"] }
itertools = { version = "0.11.0" }
heck = { version = "0.4.1" }
Expand Down
4 changes: 2 additions & 2 deletions examples/mysql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ version = "0.3.0"

[dependencies]
poem = { version = "1.3.56" }
async-graphql-poem = { version = "5.0.10" }
async-graphql = { version = "5.0.10", features = ["decimal", "chrono", "dataloader", "dynamic-schema"] }
async-graphql-poem = { version = "6.0.7" }
async-graphql = { version = "6.0.7", features = ["decimal", "chrono", "dataloader", "dynamic-schema"] }
async-trait = { version = "0.1.72" }
dotenv = "0.15.0"
sea-orm = { version = "0.12.0", features = ["sqlx-mysql", "runtime-async-std-native-tls", "seaography"] }
Expand Down
4 changes: 2 additions & 2 deletions examples/postgres/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ version = "0.3.0"

[dependencies]
poem = { version = "1.3.56" }
async-graphql-poem = { version = "5.0.10" }
async-graphql = { version = "5.0.10", features = ["decimal", "chrono", "dataloader", "dynamic-schema"] }
async-graphql-poem = { version = "6.0.7" }
async-graphql = { version = "6.0.7", features = ["decimal", "chrono", "dataloader", "dynamic-schema"] }
async-trait = { version = "0.1.72" }
dotenv = "0.15.0"
sea-orm = { version = "0.12.0", features = ["sqlx-postgres", "runtime-async-std-native-tls", "seaography"] }
Expand Down
8 changes: 4 additions & 4 deletions examples/sqlite/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ name = "seaography-sqlite-example"
version = "0.3.0"

[dependencies]
poem = { version = "1.3.56" }
async-graphql-poem = { version = "5.0.10" }
async-graphql = { version = "5.0.10", features = ["decimal", "chrono", "dataloader", "dynamic-schema"] }
actix-web = { version = "4.3.1", default-features = false, features = ["macros"] }
async-graphql-actix-web = { version = "6.0.7" }
async-graphql = { version = "6.0.7", features = ["decimal", "chrono", "dataloader", "dynamic-schema"] }
async-trait = { version = "0.1.72" }
dotenv = "0.15.0"
sea-orm = { version = "0.12.0", features = ["sqlx-sqlite", "runtime-async-std-native-tls", "seaography"] }
Expand All @@ -17,7 +17,7 @@ lazy_static = { version = "1.4.0" }

[dependencies.seaography]
path = "../../"
version = "^1.0.0-rc.2" # seaography version
version = "1.0.0-rc.2" # seaography version
features = ["with-decimal", "with-chrono"]

[dev-dependencies]
Expand Down
3 changes: 2 additions & 1 deletion generator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ pub enum WebFrameworkEnum {
Poem,
}

#[allow(clippy::too_many_arguments)] pub async fn write_project<P: AsRef<std::path::Path>, T: AsRef<std::path::Path>>(
#[allow(clippy::too_many_arguments)]
pub async fn write_project<P: AsRef<std::path::Path>, T: AsRef<std::path::Path>>(
root_path: &P,
entities_path: &T,
db_url: &str,
Expand Down
4 changes: 2 additions & 2 deletions generator/src/templates/actix_cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ version = "0.3.0"

[dependencies]
actix-web = { version = "4.3.1", default-features = false, features = ["macros"] }
async-graphql-actix-web = { version = "5.0.10" }
async-graphql = { version = "5.0.10", features = ["decimal", "chrono", "dataloader", "dynamic-schema"] }
async-graphql-actix-web = { version = "6.0.7" }
async-graphql = { version = "6.0.7", features = ["decimal", "chrono", "dataloader", "dynamic-schema"] }
async-trait = { version = "0.1.72" }
dotenv = "0.15.0"
sea-orm = { version = "0.12.0", features = ["<seaography-sql-library>", "runtime-async-std-native-tls", "seaography"] }
Expand Down
4 changes: 2 additions & 2 deletions generator/src/templates/poem_cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ version = "0.3.0"

[dependencies]
poem = { version = "1.3.56" }
async-graphql-poem = { version = "5.0.10" }
async-graphql = { version = "5.0.10", features = ["decimal", "chrono", "dataloader", "dynamic-schema"] }
async-graphql-poem = { version = "6.0.7" }
async-graphql = { version = "6.0.7", features = ["decimal", "chrono", "dataloader", "dynamic-schema"] }
async-trait = { version = "0.1.72" }
dotenv = "0.15.0"
sea-orm = { version = "0.12.0", features = ["<seaography-sql-library>", "runtime-async-std-native-tls", "seaography"] }
Expand Down
5 changes: 3 additions & 2 deletions src/query/pagination.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
use async_graphql::dynamic::ValueAccessor;
use itertools::Itertools;
use sea_orm::CursorTrait;
use sea_orm::{
ConnectionTrait, CursorTrait, DatabaseConnection, DbErr, EntityTrait, Iterable, ModelTrait,
PaginatorTrait, PrimaryKeyToColumn, QuerySelect, QueryTrait, Select,
ConnectionTrait, DatabaseConnection, DbErr, EntityTrait, Iterable, ModelTrait, PaginatorTrait,
PrimaryKeyToColumn, QuerySelect, QueryTrait, Select,
};

use crate::{
Expand Down

0 comments on commit e8703af

Please sign in to comment.