Giter VIP home page Giter VIP logo

Comments (6)

MatheusArleson avatar MatheusArleson commented on June 30, 2024 16

The solutions you provide:

  1. Understand another repo code
  2. Extend one abstraction
  3. Integrate another framework

1 and 3) Really? The very first line of code and I already have to lookup for issues on github?
2) It is an abstraction! And the Simple impl should be... simple.

Why not improve the documentation and examples? Please tell us how to get started, and use the library.

Not even the release notes states the breaking changes. It makes hard to do fixes.

Unless the readme is updated, this issue should no be closed.

from graphql-java-servlet.

oliemansm avatar oliemansm commented on June 30, 2024 1

Sorry, didn't realize the constructor is private nowadays. You have a couple of options:

  • the approach of @jplock
  • extend AbstractGraphQLHttpServlet instead of SimpleGraphQLHttpServlet
  • take a look at graphql-spring-boot

from graphql-java-servlet.

oliemansm avatar oliemansm commented on June 30, 2024

In version 6.0.0 the SimpleGraphQLServlet has been renamed to SimpleGraphQLHttpServlet. This is quite a recent change. So probably using that should get you going.

from graphql-java-servlet.

RayOconnor avatar RayOconnor commented on June 30, 2024

@oliemansm Thanks for the lightning fast response.

I tried substituting SimpleGraphQLHttpServlet for SimpleGraphQLServlet, but the constructor has private access and the tutorial calls for me to extend the class. Your comment gives me more confidence to tinker some more with SimpleGraphQLHttpServlet . I'll mess around and see what I can come up with. If all else fails I can always just use a previous version that supports SimpleGraphQLServlet

from graphql-java-servlet.

jplock avatar jplock commented on June 30, 2024

I just did this upgrade myself yesterday if it’s of any help. smoketurner/dropwizard-graphql@912bf9f

from graphql-java-servlet.

RayOconnor avatar RayOconnor commented on June 30, 2024

Thanks for the help. This should be more than sufficient for me to get going. Much appreciated.

from graphql-java-servlet.

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.