Comments (8)
Hum,
Please ignore the first comment I wrote. I'm too much switching from a language to another, these times.
Thanks to your git repo, I can repeat the bug. I'll work on this this week-end.
Etienne
from graphql-maven-plugin-project.
No problem 😄 Thank you for your efforts maintaining this plugin!
from graphql-maven-plugin-project.
By the way, the issue doesn't seem to be related to the input fields named and, or, not
. If I remove those the compilation error still happens.
from graphql-maven-plugin-project.
Also, not actually related to this issue, but is there an example of how subscriptions work?
For me it seems the way it is implemented in graphql-java-generator doesn't follow the protocol used by eg. Dgraph, Hasura, Apollo, etc.:
https://github.com/apollographql/subscriptions-transport-ws/blob/master/PROTOCOL.md
from graphql-maven-plugin-project.
Hum, it was closed by my commit comment.
So I reopen it.
For a sample, you can take a look at the allGraphQLCases, in the project.
I just add a subscription package to show the usage of this.
I’ll check the site documentation.
from graphql-maven-plugin-project.
By the way, the issue doesn't seem to be related to the input fields named
and, or, not
. If I remove those the compilation error still happens.
Yes, that's right. It's the reason why I changed my initial comment.
The issue was a quick complex one, due to the Java generic types. It was quite tricky to solve.
But stackoverflow has a lot of solutions!
:)
About the respect of protocol : as the server is handled by graphql-java, I guess it respects plainly the GraphQL protocol.
BTW, I tested it only agains a GraphQL server powered by graphql-java.
If there are issues there, I'll be glad to test it against other kind of servers.
And about a doc on how to use it:
The plugin web site has a page about this: https://graphql-maven-plugin-project.graphql-java-generator.com/client_subscription.html
You'll find a sample in the project itself: https://github.com/graphql-java-generator/graphql-maven-plugin-project/tree/master/graphql-maven-plugin-samples/graphql-maven-plugin-samples-allGraphQLCases-client/src/main/java/org/allGraphQLCases/subscription
Etienne
from graphql-maven-plugin-project.
I just released the 1.11.1 version.
Please tell me if everything is ok for you, now.
Etienne
from graphql-maven-plugin-project.
@etienne-sf thank you and stackoverflow so much! 😃 It compiles all right now! I really appreciate your quick response to this issue!
I will take a look at the examples as well, thanks.
I guess graphql-java only provides the websocket layer and doesn't bother with the message format sent over the line. But I will investigate it a bit too to see if I can make it work. You may also try to create a small Hasura setup and see whether graphql-java-generator subscriptions work with it.
from graphql-maven-plugin-project.
Related Issues (20)
- Allow usage of @GraphQLRepository in native mode HOT 1
- Reserved field "null" not correctly parsed with the graphql-maven-plugin HOT 2
- Spring 6 - missing createError() method in OAuthTokenExtractor.GetOAuthTokenClientResponse implementing spring reactive ClientResponse HOT 7
- How to exclude DataFetchers/Controllers in 2.x HOT 6
- Documentation site gone? HOT 1
- Exception while generating Pojos HOT 2
- how bind graphQl respone with implement java class HOT 1
- Parse data even if responses contain errors HOT 8
- graphql-maven-plugin unable to create scalar for custom class HOT 4
- "code too large" compilation error HOT 8
- Missing break statements after VALUE_FALSE in deserialize method HOT 7
- queries on multiple endpoints on the same server HOT 2
- Filed to generate class based on enum HOT 4
- Vulnerable dependency maven:org.codehaus.plexus:plexus-utils:1.5.8 HOT 2
- Java method and params Naming conventions in @GraphQLRepository HOT 1
- Unable to parse variables in GraphQL HOT 14
- Client application fails with springContectBean instantiation error. HOT 1
- Abuse the JSON scalar HOT 4
- Declare plugin thread safe HOT 3
- Error with subscriptions returning enums HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphql-maven-plugin-project.