Skip to content
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

GraphQL interfaces are not generated if mappingConfig has "generateApis = false" #9

Closed
PavelSusloparov opened this issue Sep 18, 2019 · 4 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@PavelSusloparov
Copy link

Is your feature request related to a problem? Please describe.
Interfaces generation is not supported as of now.
schema.graphqls

interface MyInterface {
  id: String
  ...
}

There is no class MyInterface automatically generated in the target folder.

Describe the solution you'd like
The interface is automatically generated in the target folder.
MyInterface.java

public interface MyInterface {

	public String getId();
	public void setId(String id);
}
@kobylynskyi
Copy link
Owner

@PavelSusloparov, now I got you.
interfaces are not generated when you are passing a flag generateApis = false
I will fix it in the next release.

@kobylynskyi kobylynskyi changed the title Add support for GraphQL interfaces GraphQL interfaces are not generated when if mappingConfig has "generateApis = false" Sep 18, 2019
@kobylynskyi kobylynskyi self-assigned this Sep 18, 2019
@kobylynskyi kobylynskyi added the bug Something isn't working label Sep 18, 2019
@PavelSusloparov
Copy link
Author

Ah, I see. For now, I will remove generateApis = false from the configuration.
Thanks!

@kobylynskyi kobylynskyi changed the title GraphQL interfaces are not generated when if mappingConfig has "generateApis = false" GraphQL interfaces are not generated if mappingConfig has "generateApis = false" Sep 20, 2019
@kobylynskyi kobylynskyi added this to the 1.2 milestone Sep 20, 2019
@kobylynskyi
Copy link
Owner

Fixed and released in 1.2.2
Will release maven and gradle plugins shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants