diff --git a/src/http/playground_source.rs b/src/http/playground_source.rs index a357d05f..44506e20 100644 --- a/src/http/playground_source.rs +++ b/src/http/playground_source.rs @@ -548,10 +548,16 @@ pub fn playground_source(config: &T) -> String { }) } +/// Config for GraphQL Playground #[derive(Serialize)] #[serde(rename_all = "camelCase")] pub struct GraphQLPlaygroundConfig { + /// Query endpoint pub endpoint: String, + + /// Subscription endpoint, for example: `ws://localhost:8000` pub subscription_endpoint: Option, + + /// HTTP headers pub headers: Option>, } diff --git a/src/types/connection/mod.rs b/src/types/connection/mod.rs index d9958ff6..0bb62a25 100644 --- a/src/types/connection/mod.rs +++ b/src/types/connection/mod.rs @@ -248,7 +248,7 @@ pub async fn query( before: Option, first: Option, last: Option, - mut f: F, + f: F, ) -> FieldResult> where Cursor: CursorType + Send + Sync,