-
Notifications
You must be signed in to change notification settings - Fork 104
1105 add graphQL schema file creation action #1123
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
1105 add graphQL schema file creation action #1123
Conversation
b9f3351
to
f24d7e9
Compare
f24d7e9
to
26b4206
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public class GraphQLSchemaGenerator extends FileGenerator { | ||
|
||
private final String moduleName; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, remove unnecessary empty line.
*/ | ||
public GraphQLSchemaGenerator( | ||
final String moduleName, | ||
final Project project) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, reformat constructor:
final Project project) { | |
final Project project | |
) { |
import com.intellij.lang.Language; | ||
import com.jetbrains.php.lang.PhpLanguage; | ||
|
||
public class GraphQLSchema implements ModuleFileInterface { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All file models should have suffix File
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
|
||
@Override | ||
public Language getLanguage() { | ||
return PhpLanguage.INSTANCE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you use PhpLanguage.INSTANCE?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
import com.magento.idea.magento2plugin.actions.generation.generator.util.FindOrCreateGraphQLSchema; | ||
import java.util.Properties; | ||
|
||
public class GraphQLSchemaGenerator extends FileGenerator { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where did you use this generator?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bohdan-harniuk Hi! Thanks for your review. I fixed. Please, check. Thanks!
708047f
to
23eb924
Compare
23eb924
to
0021f42
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! Thank you!
Description (*)

Added ability to create a
schema.graphqls
file from the action menu.Fixed Issues (if relevant)
Questions or comments
Contribution checklist (*)