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

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/gr

Re: GraphQL Component

2025-08-23 Thread Claus Ibsen
es("application/json") >>> .to("direct:swapi-graphql-all-films2"); >>> from("direct:swapi-graphql-all-films2") >>> .setBody(constant("{ allFilms { films { title director releaseDate } } >>> }")) >>> .to("graph

Re: GraphQL Component

2025-08-22 Thread Claus Ibsen
cation/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.netli

Re: GraphQL Component

2025-08-22 Thread Claus Ibsen
wapi-graphql-all-films2") > .setBody(constant("{ allFilms { films { title director releaseDate } } }")) > .to("graphql://https://swapi-graphql.netlify.app/.netlify/functions/index > ") > .convertBodyTo(String.class); > The reason for the failure is inter

Re: GraphQL Component

2025-08-20 Thread Chirag
ot;graphql://https://swapi-graphql.netlify.app/.netlify/functions/index";) .convertBodyTo(String.class); The reason for the failure is interesting: 1. GraphQL component constructs POST and invokes HTTP 2. netlify's index URL returns 301 with /graphql - and that forces POST to be changed to

Re: GraphQL Component

2025-08-20 Thread Claus Ibsen
ssed to the redirected URL. > > what will be better way to handle it ? Should such scenario be handled by > passing a custom http client that disables redirect and capture error? > > If GraphQL component was built using camel-http underneath - it could > return many more values to make some decisions after exchange is called . > -- Claus Ibsen

GraphQL Component

2025-08-18 Thread Chirag
Apache Common HTTP Client - and as GET - which is where the "query" is not passed to the redirected URL. what will be better way to handle it ? Should such scenario be handled by passing a custom http client that disables redirect and capture error? If GraphQL component was built usin

Re: wonkiness with graphql component

2021-02-02 Thread David Holiday
point uri, then you should use *toD* and > not *to*. To D is for To Dynamic. > > On Sun, Jan 24, 2021 at 9:05 AM David Holiday > wrote: > > > > Hello fellow Camel riders, > > > > I'm trying to use the graphql component to do some integration work with &g

Re: wonkiness with graphql component

2021-01-31 Thread Claus Ibsen
Hi For dynamic queries in the endpoint uri, then you should use *toD* and not *to*. To D is for To Dynamic. On Sun, Jan 24, 2021 at 9:05 AM David Holiday wrote: > > Hello fellow Camel riders, > > I'm trying to use the graphql component to do some integration work with > Git

wonkiness with graphql component

2021-01-24 Thread David Holiday
Hello fellow Camel riders, I'm trying to use the graphql component to do some integration work with Github and I've noticed some odd behaviors: 1) for some reason, I can't use Simple to dynamically create queries. When I log the query it shows up correctly. for example: the Ja