fix GQL init
This commit is contained in:
parent
e28cf8a217
commit
130b7a6de7
1 changed files with 4 additions and 1 deletions
|
|
@ -137,7 +137,10 @@ async fn launch() -> _ {
|
|||
.manage(S3ClientState {
|
||||
client: Arc::new(s3_client),
|
||||
})
|
||||
.manage(graphql::Context(graph_pool))
|
||||
.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