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)]
|
||||
#[graphql(description = "User information from a username")]
|
||||
struct UserInfoWithPId {
|
||||
username: String,
|
||||
account_level: i32,
|
||||
nex_password: String,
|
||||
mii_data: String,
|
||||
pid: i32,
|
||||
pub struct UserInfoWithPId {
|
||||
pub username: String,
|
||||
pub account_level: i32,
|
||||
pub nex_password: String,
|
||||
pub mii_data: String,
|
||||
pub pid: i32,
|
||||
}
|
||||
|
||||
pub struct Query;
|
||||
|
|
|
|||
|
|
@ -141,10 +141,6 @@ async fn launch() -> _ {
|
|||
.manage(S3ClientState {
|
||||
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(
|
||||
Query,
|
||||
EmptyMutation::new(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue