diff --git a/Cargo.toml b/Cargo.toml index b01e3a4a..b669c145 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,6 @@ members = [ "docker_sample", "error_handling", "form", - "graphql-demo", "hello-world", "http-proxy", "json", @@ -21,6 +20,7 @@ members = [ "json_error", "jsonrpc", "juniper", + "juniper-advanced", "middleware", "multipart", "multipart-s3", diff --git a/graphql-demo/.env.example b/juniper-advanced/.env.example similarity index 100% rename from graphql-demo/.env.example rename to juniper-advanced/.env.example diff --git a/graphql-demo/Cargo.toml b/juniper-advanced/Cargo.toml similarity index 94% rename from graphql-demo/Cargo.toml rename to juniper-advanced/Cargo.toml index ca123bc9..bc39e627 100644 --- a/graphql-demo/Cargo.toml +++ b/juniper-advanced/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "actix-graphql-demo" +name = "juniper-advanced" version = "2.0.0" authors = ["Dwi Sulfahnur "] edition = "2018" diff --git a/graphql-demo/README.md b/juniper-advanced/README.md similarity index 93% rename from graphql-demo/README.md rename to juniper-advanced/README.md index 1eb40e6a..93146083 100644 --- a/graphql-demo/README.md +++ b/juniper-advanced/README.md @@ -1,4 +1,4 @@ -# actix-graphql-demo +# juniper-advanced GraphQL Implementation in Rust using Actix, Juniper, and Mysql as Database @@ -17,7 +17,7 @@ Create ```.env``` file on the root directory of this project and set environment ```sh # go to the root dir -cd graphql-demo +cd juniper-advanced # Run cargo run diff --git a/graphql-demo/mysql-schema.sql b/juniper-advanced/mysql-schema.sql similarity index 100% rename from graphql-demo/mysql-schema.sql rename to juniper-advanced/mysql-schema.sql diff --git a/graphql-demo/src/db.rs b/juniper-advanced/src/db.rs similarity index 100% rename from graphql-demo/src/db.rs rename to juniper-advanced/src/db.rs diff --git a/graphql-demo/src/handlers.rs b/juniper-advanced/src/handlers.rs similarity index 100% rename from graphql-demo/src/handlers.rs rename to juniper-advanced/src/handlers.rs diff --git a/graphql-demo/src/main.rs b/juniper-advanced/src/main.rs similarity index 100% rename from graphql-demo/src/main.rs rename to juniper-advanced/src/main.rs diff --git a/graphql-demo/src/schemas/mod.rs b/juniper-advanced/src/schemas/mod.rs similarity index 100% rename from graphql-demo/src/schemas/mod.rs rename to juniper-advanced/src/schemas/mod.rs diff --git a/graphql-demo/src/schemas/product.rs b/juniper-advanced/src/schemas/product.rs similarity index 100% rename from graphql-demo/src/schemas/product.rs rename to juniper-advanced/src/schemas/product.rs diff --git a/graphql-demo/src/schemas/root.rs b/juniper-advanced/src/schemas/root.rs similarity index 100% rename from graphql-demo/src/schemas/root.rs rename to juniper-advanced/src/schemas/root.rs diff --git a/graphql-demo/src/schemas/user.rs b/juniper-advanced/src/schemas/user.rs similarity index 100% rename from graphql-demo/src/schemas/user.rs rename to juniper-advanced/src/schemas/user.rs diff --git a/juniper/README.md b/juniper/README.md index 949603ca..99930276 100644 --- a/juniper/README.md +++ b/juniper/README.md @@ -1,6 +1,9 @@ # Juniper -[Juniper](https://github.com/graphql-rust/juniper) integration for Actix web +[Juniper](https://github.com/graphql-rust/juniper) integration for Actix web. +If you want more advanced example, see also the [juniper-advanced example]. + +[juniper-advanced example]: https://github.com/actix/examples/tree/master/juniper-advanced ## Usage