Skip to content

Using generated api/models with kickstarter tools #797

Answered by thisarattr
thisarattr asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for take a look at this 🙏
I think I figured it out, dont think its related to relay
Kickstarter schema parser option has way to resolve this conflict using the below flag. My issue got resolved with this flag, it uses resolver type and ignore the model

preferGraphQLResolver: In cases where you have a Resolver class and legacy class that conflict on type arguments, use the Resolver class instead of throwing an error. Specifically this situation can occur when you have a graphql schema type Foo with a bars property and classes:

// legacy class you can't change
class Foo {
  Set<Bar> getBars() {
    //...returns set of bars...
  }
}

// nice resolver that does what you want
class Foo…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by kobylynskyi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants