GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — KickStart and protobug · graphql-java-kickstart/graphql-java-tools · Discussion #730

KickStart and protobug #730

Unanswered
MartinKosicky asked this question in Q&A
KickStart and protobug #730
@MartinKosicky MartinKosicky
Jan 13, 2023 · 0 comments
Return to top
Discussion options
  • Uh oh!

    There was an error while loading. Please reload this page.

MartinKosicky
Jan 13, 2023

Hi I have a problem. I would like to have on one side graphql schema, and on the other side protobuf (historical reasons). We have a lot of codebase which is impossible to change on one go. We have also other half of the system simple POJOs where we dont have a problem.

Question is how can I transform graphql query into a custom java object that doesnt neccesary have the set and get. (Protobuf has builders). Protobuf also has repeated string which in java is a

public interface ProtocolStringList extends List<String> {
    List<ByteString> asByteStringList();
}

and the system gives me

Unable to match type definition (ListType{type=TypeName{name='String'}}) with java type (interface com.google.protobuf.ProtocolStringList): Java class is not a List or generic type information was lost: interface com.google.protobuf.ProtocolStringList

any ideas what would be a good approach?

You must be logged in to vote
All reactions

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
1 participant
@MartinKosicky
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.