diff --git a/integrations/tide/src/lib.rs b/integrations/tide/src/lib.rs index faa7bd96..7ffae03d 100644 --- a/integrations/tide/src/lib.rs +++ b/integrations/tide/src/lib.rs @@ -124,7 +124,7 @@ pub async fn receive_batch_request_opts( opts: MultipartOptions, ) -> tide::Result { if request.method() == Method::Get { - request.query() + request.query::().map(Into::into) } else { let body = request.take_body(); let content_type = request diff --git a/integrations/tide/tests/graphql.rs b/integrations/tide/tests/graphql.rs index 4cbf726d..aa3a4445 100644 --- a/integrations/tide/tests/graphql.rs +++ b/integrations/tide/tests/graphql.rs @@ -57,13 +57,8 @@ fn quickstart() -> Result<()> { .no_proxy() .build() .unwrap() - .get( - format!( - "http://{}?query=%7B%20add%28a%3A%2010%2C%20b%3A%2020%29%20%7D", - listen_addr - ) - .as_str(), - ) + .get(format!("http://{}", listen_addr).as_str()) + .query(&[("query", "{ add(a: 10, b: 20) }")]) .send() .await?;