fix GQL init

This commit is contained in:
Andrea Toska 2025-05-12 10:31:17 +02:00
commit 130b7a6de7
No known key found for this signature in database
GPG key ID: 5B3C83807CCBE9A2

View file

@ -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 youre preloading a static API key
})
.manage(Schema::new(
Query,
EmptyMutation::new(),