Skip to content

Integration testing of the generated endpoint only #1256

Answered by smyrick
keetron asked this question in Q&A
Discussion options

You must be logged in to vote

It looks like you are trying to return TemporalAccessor somewhere in the schema so it is taking all the functions in this class and running them through the generator. The method TemporalAccessor.range has one argument and that happens to be an interface. In Kotlin this is valid, but in GraphQL you can not use interfaces as input objects. So the resolution here is to either use a type different than TemporalAccessor or modify the behaviour with hooks to ignore this method.

I would suggest not using any of the base java classes in your schema unless you are doing something with custom scalars. Avoiding these types means your API schema is better controlled and more focuses on returning the…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@keetron
Comment options

@keetron
Comment options

Answer selected by keetron
Comment options

You must be logged in to vote
4 replies
@keetron
Comment options

@smyrick
Comment options

@Keerthan22
Comment options

@smyrick
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants