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 {
|
.manage(S3ClientState {
|
||||||
client: Arc::new(s3_client),
|
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(
|
.manage(Schema::new(
|
||||||
Query,
|
Query,
|
||||||
EmptyMutation::new(),
|
EmptyMutation::new(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue