-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
about graphql-Java #89
Comments
Hello, PRs are always welcome. 🙂 Could you describe your use-case (or goal) for the graphql-java support you want to add? Maybe there's already a way to do it. |
I just want to convert schema to scala case class, because writing two much case class are boring. In theory, schema standards are the same in different implementations of graphql, so they can already support? I'm not sure, because i found a issue has open #19 |
You can already generate case classes for a given graphql schema (on the client-side). In your case the schema would be pulled from a graphql-java server. Check out the Code Generation part of the readme. The issue you linked is similar but instead of generating the client-side code they want to generate a sangria-server from a given schema. I assume you don't need that because you already have a graphql-server (using graphql-java). Hope this helps 🙂 |
sry ,It may not be described clearly, but I think I also need the server code ,that is data response to frontend. ProjectInfo(......) or grpc Dto ProjectInfoDto 2.server schema like this
3.then i need write case class for response, this is what i want to auto generate That is a pure back-end service, exposing a /grqphql interface to the frontend. 1.one case is (dao call grpc) |
I may still not fully understand what you're trying to do. 😅 I think you are writing a graphql-server (using If this is the case this plugin sadly cannot help you much right now. But
Both of the mentioned options directly use
edit: I also don't understand what this has to do with |
I forgot to link to this |
Okay, thank you, 😯maybe Sangria can do this,but i write graphql-server not Sangria, |
Excuse me, we use graphql-java a lot,can this plugin support graphql-Java with A PR? Although I don't know if graphql-Java can provider parser or validation
The text was updated successfully, but these errors were encountered: