Re: GraphQL Component

2025-08-24 Thread Claus Ibsen
Hi Yeah we can make it possible to plugin a custom client. However then you need setup all of this yourself for authentication, proxy and so on https://issues.apache.org/jira/browse/CAMEL-22370 On Sat, Aug 23, 2025 at 5:57 PM Chirag wrote: > Hello Claus, > > While camel-graphql component doesn

Re: GraphQL Component

2025-08-23 Thread Chirag
Hello Claus, While camel-graphql component doesn't document this https://camel.apache.org/components/4.10.x/graphql-component.html, underlying class has following: https://github.com/apache/camel/blob/main/components/camel-graphql/src/main/java/org/apache/camel/component/graphql/GraphqlEndpoint.j

Re: GraphQL Component

2025-08-23 Thread Claus Ibsen
Hi I created a ticket https://issues.apache.org/jira/browse/HTTPCLIENT-2390 On Sat, Aug 23, 2025 at 8:22 AM Claus Ibsen wrote: > Hi > > Looking inside the HTTP client source code, then it looks like its not > possible. > > > org/apache/httpcomponents/client5/httpclient5/5.4.4/httpclient5-5.4.4-

Re: GraphQL Component

2025-08-22 Thread Claus Ibsen
Hi Looking inside the HTTP client source code, then it looks like its not possible. org/apache/httpcomponents/client5/httpclient5/5.4.4/httpclient5-5.4.4-sources.jar!/org/apache/hc/client5/http/impl/async/AsyncRedirectExec.java:149 There it detects that its a 301/302 and if its a POST then chang

Re: GraphQL Component

2025-08-22 Thread Claus Ibsen
Hi Ah okay yeah that is a special case. But it's not really a bug in Camel as you mention it should be using 308 instead. Yeah I think not many humans know about this and systems may be hardcoded to use 301. So if anything then its something in HTTP client that should have some option to "overrul

Re: GraphQL Component

2025-08-20 Thread Chirag
it is v2: rest("/v2/swapi-graphql/all-films").get() .produces("application/json") .to("direct:swapi-graphql-all-films2"); from("direct:swapi-graphql-all-films2") .setBody(constant("{ allFilms { films { title director releaseDate } } }")) .to("graphql://https://swapi-graphql.netlify.app/.netlify/fun

Re: GraphQL Component

2025-08-20 Thread Claus Ibsen
Hi Can you tell if its v1 or v2 in that sample code that fails (due to a redirect) On Tue, Aug 19, 2025 at 12:09 AM Chirag wrote: > Picking up a thread from Linkedin Discussion > > > https://www.linkedin.com/posts/diego-giudici-2a4a82183_apache-camel-exec-component-to-be-used-to-activity-736141