Code Monkey home page Code Monkey logo

Comments (8)

etienne-sf avatar etienne-sf commented on August 28, 2024

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.

beepsoft avatar beepsoft commented on August 28, 2024

No problem 😄 Thank you for your efforts maintaining this plugin!

from graphql-maven-plugin-project.

beepsoft avatar beepsoft commented on August 28, 2024

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.

beepsoft avatar beepsoft commented on August 28, 2024

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.

etienne-sf avatar etienne-sf commented on August 28, 2024

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.

etienne-sf avatar etienne-sf commented on August 28, 2024

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.

etienne-sf avatar etienne-sf commented on August 28, 2024

I just released the 1.11.1 version.

Please tell me if everything is ok for you, now.

Etienne

from graphql-maven-plugin-project.

beepsoft avatar beepsoft commented on August 28, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.