remove graphQL context from main.rs
This commit is contained in:
parent
46a9e17973
commit
3a7dbde2dd
2 changed files with 6 additions and 10 deletions
|
|
@ -64,12 +64,12 @@ struct UserInfo {
|
||||||
|
|
||||||
#[derive(GraphQLObject)]
|
#[derive(GraphQLObject)]
|
||||||
#[graphql(description = "User information from a username")]
|
#[graphql(description = "User information from a username")]
|
||||||
struct UserInfoWithPId {
|
pub struct UserInfoWithPId {
|
||||||
username: String,
|
pub username: String,
|
||||||
account_level: i32,
|
pub account_level: i32,
|
||||||
nex_password: String,
|
pub nex_password: String,
|
||||||
mii_data: String,
|
pub mii_data: String,
|
||||||
pid: i32,
|
pub pid: i32,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Query;
|
pub struct Query;
|
||||||
|
|
|
||||||
|
|
@ -141,10 +141,6 @@ async fn launch() -> _ {
|
||||||
.manage(S3ClientState {
|
.manage(S3ClientState {
|
||||||
client: Arc::new(s3_client),
|
client: Arc::new(s3_client),
|
||||||
})
|
})
|
||||||
.manage(graphql::Context {
|
|
||||||
pool: graph_pool,
|
|
||||||
api_key: None, // or Some(...) if you’re preloading a static API key
|
|
||||||
})
|
|
||||||
.manage(Schema::new(
|
.manage(Schema::new(
|
||||||
Query,
|
Query,
|
||||||
EmptyMutation::new(),
|
EmptyMutation::new(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue