-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SmallRye GraphQL Client extension + 1.2.1 upgrade #17350
Conversation
That's very nice. I would be curious if we could get rid of all the custom stuff we have in https://github.com/quarkusio/status.quarkus.io/. One of my questions is if it's possible to express queries as strings. We are using Qute templates in status.quarkus.io (see https://github.com/quarkusio/status.quarkus.io/blob/main/src/main/resources/templates/GitHubService/findIssuesByIds.graphql) and that's definitely easier to express/test than writing some DSL calls. |
Using string queries isn't supported by the dynamic client right now, but it won't be a problem to add that. (for the typesafe client, this obviously doesn't make sense) |
@jmartisk I think it would be a useful experiment to try to convert status.quarkus.io to use this. And supporting String queries could be a very useful addition for that. |
@gsmet Definitely. I filed smallrye/smallrye-graphql#806 |
Failing Jobs - Building c6a1798
Full information is available in the Build summary check run. Test Failures⚙️ Maven Tests - JDK 11 #📦 integration-tests/maven✖ |
@jmartisk in the doc, it would be useful to explain how to push an authorization header: https://github.com/quarkusio/status.quarkus.io/blob/main/src/main/java/io/quarkus/status/graphql/GraphQLClient.java#L14 |
Sure. I'm planning to start writing the user guide today and see if I can get it done before going on PTO |
Oh, and a quickstart probably. |
@gsmet - It would be good to get this in before the next Alpha (or Beta) so we can start playing :) |
Great to see this coming! Any chance that it will be backported to pre-2.0? And I had assumed I could just |
sorry, my bad: I mixed versions, which is obviously a bad idea. Still there is no test for injecting typesafe client apis, only programmatic lookups. |
@t1 I'll add such test |
I don't think backporting is being planned, there's also the problem that Quarkus 1 contains SR GraphQL 1.0.x, which only contains the typesafe client, so it would have to be only a partial backport. And SR GraphQL 1.2.x depends on Vert.x 4 so it can't go into Quarkus 1.x. It would be quite complicated. |
That was fast! Thanks. Also for the explanation about not backporting. I'll have to do my demo talk with the Alpha-Releases then, I guess. |
@t1 when is your demo ? |
On June 9th.. maybe I'll manage to get my GraphQL Federation Quarkus Extension running by then (this is all very new to me). That would be uber cool. Otherwise I'll have to switch back to WildFly. |
@t1 - By then Quarkus 2 should be released (see https://github.com/quarkusio/quarkus/wiki/Release-Planning), also, subscription is also in, have a look :) |
Cool... it says 'Full Platform release (and official announcement) on June 9th' ... that would be exactly the day... coincidence or destiny? ;-) |
Fixes #16792
Subscription support and a user guide coming up next